summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-05-09 13:44:11 +0200
committerJose Bollo <jose.bollo@iot.bzh>2019-05-09 15:12:37 +0200
commit4a7cb415e9d95461398ec326139972fcc45fab70 (patch)
tree160de3a37658641b964ff9ded38a2a4760103508
parented91352e50be1efcfa70e04f8d7e0761690837b9 (diff)
Set default socket type to unix
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socket.c b/src/socket.c
index 5dbfa9e..fc01b8f 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -74,6 +74,10 @@ struct entry
*/
static struct entry entries[] = {
{
+ .prefix = "unix:",
+ .type = Type_Unix
+ },
+ {
.prefix = "tcp:",
.type = Type_Inet
},
@@ -82,10 +86,6 @@ static struct entry entries[] = {
.type = Type_Systemd,
.noreuseaddr = 1,
.nolisten = 1
- },
- {
- .prefix = "unix:",
- .type = Type_Unix
}
};