Skip to content

Commit

Permalink
set port = -1 if use Unix Domain Socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Oct 17, 2022
1 parent bbd6ae7 commit 3509791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/tcp_echo_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ int main(int argc, char** argv) {
#if ENABLE_UDS
if (port == 0) {
host = argv[1];
port = -1;
}
#endif

Expand Down
1 change: 1 addition & 0 deletions examples/udp_echo_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ int main(int argc, char** argv) {
#if ENABLE_UDS
if (port == 0) {
host = argv[1];
port = -1;
}
#endif

Expand Down

0 comments on commit 3509791

Please sign in to comment.