diff options
author | runge <runge> | 2005-03-05 01:06:05 +0000 |
---|---|---|
committer | runge <runge> | 2005-03-05 01:06:05 +0000 |
commit | b8b96689bf29ae1b2fca12a59be9196d6a2acb25 (patch) | |
tree | 040b06215c2d5141cf6a9a1bf4fe93524b7fcc43 /libvncclient | |
parent | 3c4522e67652d36162d007dce1dcd798562da5fb (diff) | |
download | libvncserver-b8b96689bf29ae1b2fca12a59be9196d6a2acb25.zip libvncserver-b8b96689bf29ae1b2fca12a59be9196d6a2acb25.tar.gz |
add '-listen ipaddr' option
Diffstat (limited to 'libvncclient')
-rw-r--r-- | libvncclient/sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index efe7eb9..21047fb 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -305,7 +305,7 @@ FindFreeTcpPort(void) struct sockaddr_in addr; addr.sin_family = AF_INET; - addr.sin_addr.s_addr = INADDR_ANY; + addr.sin_addr.s_addr = htonl(INADDR_ANY); sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { @@ -339,7 +339,7 @@ ListenAtTcpPort(int port) addr.sin_family = AF_INET; addr.sin_port = htons(port); - addr.sin_addr.s_addr = INADDR_ANY; + addr.sin_addr.s_addr = htonl(INADDR_ANY); sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { |