Skip to content

Commit

Permalink
Support ipv6.
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceCui committed May 25, 2022
1 parent 1862396 commit ae1a50e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ func TestSplitServer(t *testing.T) {
want: "1408:4003:10bb:6a01:83b9:6360:c66d:ed3e",
want1: 6443,
},
{
args: args{
server: "1.1.1.1:6443",
},
want: "1.1.1.1",
want1: 6443,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit ae1a50e

Please sign in to comment.