You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`❗ You are connected via a DERP relay, not directly (p2p)`,
746
-
`❗ Agent is potentially behind a hard NAT, as multiple endpoints were retrieved from different STUN servers`,
806
+
`Agent is potentially behind a hard NAT, as multiple endpoints were retrieved from different STUN servers`,
747
807
},
748
808
},
749
809
{
750
810
name: "AgentInterfaceWarnings",
751
811
diags: cliui.ConnDiags{
812
+
ConnInfo: workspacesdk.AgentConnectionInfo{
813
+
DERPMap: &tailcfg.DERPMap{},
814
+
},
752
815
PingP2P: true,
753
816
AgentNetcheck: &healthsdk.AgentNetcheckReport{
754
817
Interfaces: healthsdk.InterfacesReport{
755
818
BaseReport: healthsdk.BaseReport{
756
819
Warnings: []health.Message{
757
-
health.Messagef(health.CodeInterfaceSmallMTU, "network interface eth0 has MTU 1280, (less than 1378), which may cause problems with direct connections"),
820
+
health.Messagef(health.CodeInterfaceSmallMTU, "Network interface eth0 has MTU 1280, (less than 1378), which may degrade the quality of direct connections"),
758
821
},
759
822
},
760
823
},
761
824
},
762
825
},
763
826
want: []string{
764
-
`❗ Agent: network interface eth0 has MTU 1280, (less than 1378), which may cause problems with direct connections`,
765
827
`✔ You are connected directly (p2p)`,
828
+
`Network interface eth0 has MTU 1280, (less than 1378), which may degrade the quality of direct connections`,
766
829
},
767
830
},
768
831
{
769
832
name: "LocalInterfaceWarnings",
770
833
diags: cliui.ConnDiags{
834
+
ConnInfo: workspacesdk.AgentConnectionInfo{
835
+
DERPMap: &tailcfg.DERPMap{},
836
+
},
771
837
PingP2P: true,
772
838
LocalInterfaces: &healthsdk.InterfacesReport{
773
839
BaseReport: healthsdk.BaseReport{
774
840
Warnings: []health.Message{
775
-
health.Messagef(health.CodeInterfaceSmallMTU, "network interface eth1 has MTU 1310, (less than 1378), which may cause problems with direct connections"),
841
+
health.Messagef(health.CodeInterfaceSmallMTU, "Network interface eth1 has MTU 1310, (less than 1378), which may degrade the quality of direct connections"),
776
842
},
777
843
},
778
844
},
779
845
},
780
846
want: []string{
781
-
`❗ Client: network interface eth1 has MTU 1310, (less than 1378), which may cause problems with direct connections`,
782
847
`✔ You are connected directly (p2p)`,
848
+
`Network interface eth1 has MTU 1310, (less than 1378), which may degrade the quality of direct connections`,
849
+
},
850
+
},
851
+
{
852
+
name: "ClientAWSIP",
853
+
diags: cliui.ConnDiags{
854
+
ConnInfo: workspacesdk.AgentConnectionInfo{
855
+
DERPMap: &tailcfg.DERPMap{},
856
+
},
857
+
ClientIPIsAWS: true,
858
+
AgentIPIsAWS: false,
859
+
},
860
+
want: []string{
861
+
`❗ You are connected via a DERP relay, not directly (p2p)`,
862
+
`Client IP address is within an AWS range (AWS uses hard NAT)`,
863
+
},
864
+
},
865
+
{
866
+
name: "AgentAWSIP",
867
+
diags: cliui.ConnDiags{
868
+
ConnInfo: workspacesdk.AgentConnectionInfo{
869
+
DERPMap: &tailcfg.DERPMap{},
870
+
},
871
+
ClientIPIsAWS: false,
872
+
AgentIPIsAWS: true,
873
+
},
874
+
want: []string{
875
+
`❗ You are connected via a DERP relay, not directly (p2p)`,
876
+
`Agent IP address is within an AWS range (AWS uses hard NAT)`,
0 commit comments