test: example addresses come from the documentation range
Sonos, UPnP and public-address tests used addresses from a real home network. They now use 198.51.100.x (RFC 5737), keeping the last number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ func TestNormalizePublicURL(t *testing.T) {
|
||||
" ": "",
|
||||
"https://music.example.com": "https://music.example.com",
|
||||
"https://music.example.com/": "https://music.example.com",
|
||||
"http://192.168.1.10:4533": "http://192.168.1.10:4533",
|
||||
"http://198.51.100.10:4533": "http://198.51.100.10:4533",
|
||||
" https://Music.Example.com/ ": "https://Music.Example.com",
|
||||
}
|
||||
for in, want := range ok {
|
||||
|
||||
Reference in New Issue
Block a user