@ -71,8 +71,8 @@ func TestVMessDynamicPort(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -131,8 +131,8 @@ func TestVMessDynamicPort(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -223,8 +223,8 @@ func TestVMessGCM(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -325,8 +325,8 @@ func TestVMessGCMReadv(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -430,8 +430,8 @@ func TestVMessGCMUDP(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_UDP } ,
Networks : [ ] net . Network { net . Network_UDP } ,
} ) ,
} ) ,
} ,
} ,
@ -529,8 +529,8 @@ func TestVMessChacha20(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -629,8 +629,8 @@ func TestVMessNone(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -731,8 +731,8 @@ func TestVMessKCP(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -802,11 +802,11 @@ func TestVMessKCPLarge(t *testing.T) {
PortList : & net . PortList { Range : [ ] * net . PortRange { net . SinglePortRange ( serverPort ) } } ,
PortList : & net . PortList { Range : [ ] * net . PortRange { net . SinglePortRange ( serverPort ) } } ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
StreamSettings : & internet . StreamConfig {
StreamSettings : & internet . StreamConfig {
ProtocolName : "mkcp" ,
ProtocolName : "mkcp" ,
TransportSettings : [ ] * internet . TransportConfig {
TransportSettings : [ ] * internet . TransportConfig {
{
{
ProtocolName : "mkcp" ,
ProtocolName : "mkcp" ,
Settings : serial . ToTypedMessage ( & kcp . Config {
Settings : serial . ToTypedMessage ( & kcp . Config {
ReadBuffer : & kcp . ReadBuffer {
ReadBuffer : & kcp . ReadBuffer {
Size : 512 * 1024 ,
Size : 512 * 1024 ,
} ,
} ,
@ -857,8 +857,8 @@ func TestVMessKCPLarge(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -885,11 +885,11 @@ func TestVMessKCPLarge(t *testing.T) {
} ) ,
} ) ,
SenderSettings : serial . ToTypedMessage ( & proxyman . SenderConfig {
SenderSettings : serial . ToTypedMessage ( & proxyman . SenderConfig {
StreamSettings : & internet . StreamConfig {
StreamSettings : & internet . StreamConfig {
ProtocolName : "mkcp" ,
ProtocolName : "mkcp" ,
TransportSettings : [ ] * internet . TransportConfig {
TransportSettings : [ ] * internet . TransportConfig {
{
{
ProtocolName : "mkcp" ,
ProtocolName : "mkcp" ,
Settings : serial . ToTypedMessage ( & kcp . Config {
Settings : serial . ToTypedMessage ( & kcp . Config {
ReadBuffer : & kcp . ReadBuffer {
ReadBuffer : & kcp . ReadBuffer {
Size : 512 * 1024 ,
Size : 512 * 1024 ,
} ,
} ,
@ -984,8 +984,8 @@ func TestVMessGCMMux(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -1100,8 +1100,8 @@ func TestVMessGCMMuxUDP(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -1111,8 +1111,8 @@ func TestVMessGCMMuxUDP(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( udpDest . Address ) ,
Address : net . NewIPOrDomain ( udpDest . Address ) ,
Port : uint32 ( udpDest . Port ) ,
Port : uint32 ( udpDest . Port ) ,
Networks : [ ] net . Network { net . Network_UDP } ,
Networks : [ ] net . Network { net . Network_UDP } ,
} ) ,
} ) ,
} ,
} ,
@ -1224,8 +1224,8 @@ func TestVMessZero(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -1323,8 +1323,8 @@ func TestVMessGCMLengthAuth(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,
@ -1427,8 +1427,8 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
Listen : net . NewIPOrDomain ( net . LocalHostIP ) ,
} ) ,
} ) ,
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
ProxySettings : serial . ToTypedMessage ( & dokodemo . Config {
Address : net . NewIPOrDomain ( dest . Address ) ,
Address : net . NewIPOrDomain ( dest . Address ) ,
Port : uint32 ( dest . Port ) ,
Port : uint32 ( dest . Port ) ,
Networks : [ ] net . Network { net . Network_TCP } ,
Networks : [ ] net . Network { net . Network_TCP } ,
} ) ,
} ) ,
} ,
} ,