summaryrefslogtreecommitdiff
path: root/devel/ice/files/patch-cpp-test-Glacier2-ssl-Server.cpp
blob: 12bda6b15bb737c1281a9ac52c8f1c9dccbf0ad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- cpp/test/Glacier2/ssl/Server.cpp.orig	2019-08-12 19:54:18 UTC
+++ cpp/test/Glacier2/ssl/Server.cpp
@@ -31,9 +31,15 @@ void testContext(bool ssl, const Ice::Context& context
         test(ctx["_con.type"] == "ssl");
         test(ctx["_con.localPort"] == "12348");
     }
-    test(ctx["_con.localAddress"] == "127.0.0.1");
+    if (!inFreeBSDJail())
+    {
+        test(ctx["_con.localAddress"] == "127.0.0.1");
+    }
     test(ctx["_con.remotePort"] != "");
-    test(ctx["_con.remoteAddress"] == "127.0.0.1");
+    if (!inFreeBSDJail())
+    {
+        test(ctx["_con.remoteAddress"] == "127.0.0.1");
+    }
 }
 
 }
@@ -125,8 +131,11 @@ class SSLSessionManagerI : public Glacier2::SSLSession
     {
         testContext(true, current.ctx);
 
-        test(info.remoteHost == "127.0.0.1");
-        test(info.localHost == "127.0.0.1");
+        if (!inFreeBSDJail())
+        {
+            test(info.remoteHost == "127.0.0.1");
+            test(info.localHost == "127.0.0.1");
+        }
         test(info.localPort == 12348);
 
         try