[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - net/Socket.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 5 14:37:07 UTC 2018
net/Socket.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f32b75eefe5ac2b4ac5b54039e3b4bb665b994d6
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Wed Oct 3 13:25:36 2018 +0200
Commit: Aron Budea <aron.budea at collabora.com>
CommitDate: Fri Oct 5 16:36:50 2018 +0200
fix that internal port 9981 was opened on all interfaces
Change-Id: I04cd12b7fa2f0be9b08a3d325f08b36ca2ce240e
Reviewed-on: https://gerrit.libreoffice.org/61410
Reviewed-by: Aron Budea <aron.budea at collabora.com>
Tested-by: Aron Budea <aron.budea at collabora.com>
diff --git a/net/Socket.cpp b/net/Socket.cpp
index b78900276..35b713632 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -312,9 +312,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