@@ -22,7 +22,6 @@ import (
2222 "github.com/xtls/xray-core/testing/servers/tcp"
2323 "github.com/xtls/xray-core/testing/servers/udp"
2424 "github.com/xtls/xray-core/transport/internet"
25- "github.com/xtls/xray-core/transport/internet/kcp"
2625 "golang.org/x/sync/errgroup"
2726)
2827
@@ -94,9 +93,9 @@ func TestVMessGCM(t *testing.T) {
9493 Receiver : & protocol.ServerEndpoint {
9594 Address : net .NewIPOrDomain (net .LocalHostIP ),
9695 Port : uint32 (serverPort ),
97- User : & protocol.User {
96+ User : & protocol.User {
9897 Account : serial .ToTypedMessage (& vmess.Account {
99- Id : userID .String (),
98+ Id : userID .String (),
10099 SecuritySettings : & protocol.SecurityConfig {
101100 Type : protocol .SecurityType_AES128_GCM ,
102101 },
@@ -192,9 +191,9 @@ func TestVMessGCMReadv(t *testing.T) {
192191 Receiver : & protocol.ServerEndpoint {
193192 Address : net .NewIPOrDomain (net .LocalHostIP ),
194193 Port : uint32 (serverPort ),
195- User : & protocol.User {
194+ User : & protocol.User {
196195 Account : serial .ToTypedMessage (& vmess.Account {
197- Id : userID .String (),
196+ Id : userID .String (),
198197 SecuritySettings : & protocol.SecurityConfig {
199198 Type : protocol .SecurityType_AES128_GCM ,
200199 },
@@ -293,9 +292,9 @@ func TestVMessGCMUDP(t *testing.T) {
293292 Receiver : & protocol.ServerEndpoint {
294293 Address : net .NewIPOrDomain (net .LocalHostIP ),
295294 Port : uint32 (serverPort ),
296- User : & protocol.User {
295+ User : & protocol.User {
297296 Account : serial .ToTypedMessage (& vmess.Account {
298- Id : userID .String (),
297+ Id : userID .String (),
299298 SecuritySettings : & protocol.SecurityConfig {
300299 Type : protocol .SecurityType_AES128_GCM ,
301300 },
@@ -388,9 +387,9 @@ func TestVMessChacha20(t *testing.T) {
388387 Receiver : & protocol.ServerEndpoint {
389388 Address : net .NewIPOrDomain (net .LocalHostIP ),
390389 Port : uint32 (serverPort ),
391- User : & protocol.User {
390+ User : & protocol.User {
392391 Account : serial .ToTypedMessage (& vmess.Account {
393- Id : userID .String (),
392+ Id : userID .String (),
394393 SecuritySettings : & protocol.SecurityConfig {
395394 Type : protocol .SecurityType_CHACHA20_POLY1305 ,
396395 },
@@ -484,7 +483,7 @@ func TestVMessNone(t *testing.T) {
484483 Receiver : & protocol.ServerEndpoint {
485484 Address : net .NewIPOrDomain (net .LocalHostIP ),
486485 Port : uint32 (serverPort ),
487- User : & protocol.User {
486+ User : & protocol.User {
488487 Account : serial .ToTypedMessage (& vmess.Account {
489488 Id : userID .String (),
490489 SecuritySettings : & protocol.SecurityConfig {
@@ -638,25 +637,6 @@ func TestVMessKCPLarge(t *testing.T) {
638637 Listen : net .NewIPOrDomain (net .LocalHostIP ),
639638 StreamSettings : & internet.StreamConfig {
640639 ProtocolName : "mkcp" ,
641- TransportSettings : []* internet.TransportConfig {
642- {
643- ProtocolName : "mkcp" ,
644- Settings : serial .ToTypedMessage (& kcp.Config {
645- ReadBuffer : & kcp.ReadBuffer {
646- Size : 512 * 1024 ,
647- },
648- WriteBuffer : & kcp.WriteBuffer {
649- Size : 512 * 1024 ,
650- },
651- UplinkCapacity : & kcp.UplinkCapacity {
652- Value : 20 ,
653- },
654- DownlinkCapacity : & kcp.DownlinkCapacity {
655- Value : 20 ,
656- },
657- }),
658- },
659- },
660640 },
661641 }),
662642 ProxySettings : serial .ToTypedMessage (& inbound.Config {
@@ -704,7 +684,7 @@ func TestVMessKCPLarge(t *testing.T) {
704684 Receiver : & protocol.ServerEndpoint {
705685 Address : net .NewIPOrDomain (net .LocalHostIP ),
706686 Port : uint32 (serverPort ),
707- User : & protocol.User {
687+ User : & protocol.User {
708688 Account : serial .ToTypedMessage (& vmess.Account {
709689 Id : userID .String (),
710690 SecuritySettings : & protocol.SecurityConfig {
@@ -717,25 +697,6 @@ func TestVMessKCPLarge(t *testing.T) {
717697 SenderSettings : serial .ToTypedMessage (& proxyman.SenderConfig {
718698 StreamSettings : & internet.StreamConfig {
719699 ProtocolName : "mkcp" ,
720- TransportSettings : []* internet.TransportConfig {
721- {
722- ProtocolName : "mkcp" ,
723- Settings : serial .ToTypedMessage (& kcp.Config {
724- ReadBuffer : & kcp.ReadBuffer {
725- Size : 512 * 1024 ,
726- },
727- WriteBuffer : & kcp.WriteBuffer {
728- Size : 512 * 1024 ,
729- },
730- UplinkCapacity : & kcp.UplinkCapacity {
731- Value : 20 ,
732- },
733- DownlinkCapacity : & kcp.DownlinkCapacity {
734- Value : 20 ,
735- },
736- }),
737- },
738- },
739700 },
740701 }),
741702 },
@@ -833,7 +794,7 @@ func TestVMessGCMMux(t *testing.T) {
833794 Receiver : & protocol.ServerEndpoint {
834795 Address : net .NewIPOrDomain (net .LocalHostIP ),
835796 Port : uint32 (serverPort ),
836- User : & protocol.User {
797+ User : & protocol.User {
837798 Account : serial .ToTypedMessage (& vmess.Account {
838799 Id : userID .String (),
839800 SecuritySettings : & protocol.SecurityConfig {
@@ -956,7 +917,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
956917 Receiver : & protocol.ServerEndpoint {
957918 Address : net .NewIPOrDomain (net .LocalHostIP ),
958919 Port : uint32 (serverPort ),
959- User : & protocol.User {
920+ User : & protocol.User {
960921 Account : serial .ToTypedMessage (& vmess.Account {
961922 Id : userID .String (),
962923 SecuritySettings : & protocol.SecurityConfig {
@@ -1059,7 +1020,7 @@ func TestVMessZero(t *testing.T) {
10591020 Receiver : & protocol.ServerEndpoint {
10601021 Address : net .NewIPOrDomain (net .LocalHostIP ),
10611022 Port : uint32 (serverPort ),
1062- User : & protocol.User {
1023+ User : & protocol.User {
10631024 Account : serial .ToTypedMessage (& vmess.Account {
10641025 Id : userID .String (),
10651026 SecuritySettings : & protocol.SecurityConfig {
@@ -1154,7 +1115,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
11541115 Receiver : & protocol.ServerEndpoint {
11551116 Address : net .NewIPOrDomain (net .LocalHostIP ),
11561117 Port : uint32 (serverPort ),
1157- User : & protocol.User {
1118+ User : & protocol.User {
11581119 Account : serial .ToTypedMessage (& vmess.Account {
11591120 Id : userID .String (),
11601121 SecuritySettings : & protocol.SecurityConfig {
@@ -1254,7 +1215,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
12541215 Receiver : & protocol.ServerEndpoint {
12551216 Address : net .NewIPOrDomain (net .LocalHostIP ),
12561217 Port : uint32 (serverPort ),
1257- User : & protocol.User {
1218+ User : & protocol.User {
12581219 Account : serial .ToTypedMessage (& vmess.Account {
12591220 Id : userID .String (),
12601221 SecuritySettings : & protocol.SecurityConfig {
0 commit comments