diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-12-03 00:12:31 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-12-03 18:51:51 +0100 |
commit | 82a9d796219de863253b96340bb03c4506c8c676 (patch) | |
tree | 79fb62db3e532fefa58dd8e4fcacdf14a808668f /src/afb-hsrv.c | |
parent | 7a28ebbeb8af7bf37d46fc1158a203790f1ddcc7 (diff) |
main-afb-daemon: manage listening interfacesicefish_8.99.3icefish_8.99.2icefish/8.99.3icefish/8.99.28.99.38.99.2
This change allows to specify interfaces to serve
explicitely.
By default the option --port=PORT lead to serving
interface of specification "tcp:*:PORT". Meaning
that all interfaces are listened.
This is intended to be used with localuser family
of hostnames.
Bug-AGL: SPEC-2968
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I3fb2a77a5c03dd4c2118ebe3267794f79bfc0262
Diffstat (limited to 'src/afb-hsrv.c')
-rw-r--r-- | src/afb-hsrv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index 3f11047e..3795b7b2 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -533,7 +533,7 @@ static int hsrv_itf_connect(struct hsrv_itf *itf) char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; int rgni; - itf->fdev = afb_socket_open_fdev(itf->uri, 1); + itf->fdev = afb_socket_open_fdev_scheme(itf->uri, 1, "tcp"); if (!itf->fdev) { ERROR("can't create socket %s", itf->uri); return 0; |