[Libreoffice-commits] online.git: net/Socket.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 5 14:38:21 UTC 2018
net/Socket.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3c005f952a7ff43ce6a743d89a15c209b3b50b17
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Wed Oct 3 13:25:36 2018 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Fri Oct 5 16:38:03 2018 +0200
fix that internal port 9981 was opened on all interfaces
Change-Id: I04cd12b7fa2f0be9b08a3d325f08b36ca2ce240e
Reviewed-on: https://gerrit.libreoffice.org/61296
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/net/Socket.cpp b/net/Socket.cpp
index 91006f069..56c356221 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -379,9 +379,9 @@ bool ServerSocket::bind(Type type, int port)
addrv4.sin_family = AF_INET;
addrv4.sin_port = htons(port);
if (type == Type::Public)
- addrv4.sin_addr.s_addr = type == htonl(INADDR_ANY);
+ addrv4.sin_addr.s_addr = htonl(INADDR_ANY);
else
- addrv4.sin_addr.s_addr = type == htonl(INADDR_LOOPBACK);
+ addrv4.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
rc = ::bind(getFD(), (const sockaddr *)&addrv4, sizeof(addrv4));
}
More information about the Libreoffice-commits
mailing list