@@ -13,6 +13,7 @@ func (proxy *Proxy) udpListenerConfig() (*net.ListenConfig, error) {
1313 _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IPV6 , syscall .IPV6_BINDANY , 1 )
1414 _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IP , syscall .IP_DF , 0 )
1515 _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IP , syscall .IP_TOS , 0x70 )
16+ _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IPV6 , syscall .IPV6_TCLASS , 0x70 )
1617 _ = syscall .SetsockoptInt (int (fd ), syscall .SOL_SOCKET , syscall .SO_RCVBUF , 4096 )
1718 _ = syscall .SetsockoptInt (int (fd ), syscall .SOL_SOCKET , syscall .SO_SNDBUF , 4096 )
1819 })
@@ -28,6 +29,7 @@ func (proxy *Proxy) tcpListenerConfig() (*net.ListenConfig, error) {
2829 _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IP , syscall .IP_BINDANY , 1 )
2930 _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IPV6 , syscall .IPV6_BINDANY , 1 )
3031 _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IP , syscall .IP_TOS , 0x70 )
32+ _ = syscall .SetsockoptInt (int (fd ), syscall .IPPROTO_IPV6 , syscall .IPV6_TCLASS , 0x70 )
3133 })
3234 return nil
3335 },
0 commit comments