diff options
-rw-r--r-- | src/lib9/dial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib9/dial.c b/src/lib9/dial.c index c3634766..da9019ae 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c @@ -98,6 +98,8 @@ p9dial(char *addr, char *local, char *dummy2, int *dummy3) free(buf); } + n = 1; + setsockopt(s, SOL_SOCKET, SO_BROADCAST, &n, sizeof n); if(connect(s, (struct sockaddr*)&sa, sizeof sa) < 0){ close(s); return -1; |