Add IPv6 addresses to some tests

This only checks they are being parsed with no error, it doesn't
actually do anything useful with them.
This commit is contained in:
Juliusz Chroboczek
2021-01-25 20:26:09 +01:00
committed by Sean DuBois
parent bafb7f5524
commit f4b3d98c1f
2 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,12 @@ func TestICEServer_validate(t *testing.T) {
Credential: "placeholder",
CredentialType: ICECredentialTypePassword,
}, true},
{ICEServer{
URLs: []string{"turn:[2001:db8:1234:5678::1]?transport=udp"},
Username: "unittest",
Credential: "placeholder",
CredentialType: ICECredentialTypePassword,
}, true},
{ICEServer{
URLs: []string{"turn:192.158.29.39?transport=udp"},
Username: "unittest",