Update copyright dates
[src/app-framework-binder.git] / src / afb-hsrv.c
index 3f11047..61e5c3c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -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;