freebsd-ports/net/gnomemeeting/files/patch-endpoint
Roger Hardiman da3081c17f Add patch to disable IPv6 support which was making GM crash.
Fix a fig where calls to GM using 127.0.0.1 fail when NAT support enabled
2003-09-05 12:35:42 +00:00

37 lines
1.1 KiB
Text

*** src/endpoint.cpp.orig Thu Jul 31 17:26:36 2003
--- src/endpoint.cpp Fri Sep 5 11:40:58 2003
*************** GMH323EndPoint::GMH323EndPoint ()
*** 176,183 ****
/* Use IPv6 address family by default if available. */
#ifdef P_HAS_IPV6
! if (PIPSocket::IsIpAddressFamilyV6Supported())
! PIPSocket::SetDefaultIpAddressFamilyV6();
#endif
rtp_port_range =
--- 176,185 ----
/* Use IPv6 address family by default if available. */
#ifdef P_HAS_IPV6
! // ENABLING THIS CAUSES PWLIB TO GIVE AN ASSERTION WHEN THERE IS AN
! // INCOMING CALL
! // if (PIPSocket::IsIpAddressFamilyV6Supported())
! // PIPSocket::SetDefaultIpAddressFamilyV6();
#endif
rtp_port_range =
*************** GMH323EndPoint::TranslateTCPAddress(PIPS
*** 682,687 ****
--- 684,694 ----
&& !((remoteAddr.Byte1() == 172)
&& ((remoteAddr.Byte2() >= 16)&&(remoteAddr.Byte2()<=31)))
+
+ && !((remoteAddr.Byte1() == 127)
+ &&(remoteAddr.Byte2()== 0)
+ &&(remoteAddr.Byte3()==0)
+ &&(remoteAddr.Byte4()==1))
&& !(remoteAddr.Byte1() == 10)) {