mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-03 20:11:43 +02:00
Fix TestListenerAddrEqual (#1727)
This commit is contained in:
parent
133ed18374
commit
7516b4b533
1 changed files with 3 additions and 3 deletions
|
@ -142,13 +142,13 @@ func TestListenerAddrEqual(t *testing.T) {
|
||||||
addr string
|
addr string
|
||||||
expect bool
|
expect bool
|
||||||
}{
|
}{
|
||||||
{ln1, ":1234", false},
|
{ln1, ":" + ln2port, false},
|
||||||
{ln1, "0.0.0.0:1234", false},
|
{ln1, "0.0.0.0:" + ln2port, false},
|
||||||
{ln1, "0.0.0.0", false},
|
{ln1, "0.0.0.0", false},
|
||||||
{ln1, ":" + ln1port, true},
|
{ln1, ":" + ln1port, true},
|
||||||
{ln1, "0.0.0.0:" + ln1port, true},
|
{ln1, "0.0.0.0:" + ln1port, true},
|
||||||
{ln2, ":" + ln2port, false},
|
{ln2, ":" + ln2port, false},
|
||||||
{ln2, "127.0.0.1:1234", false},
|
{ln2, "127.0.0.1:" + ln1port, false},
|
||||||
{ln2, "127.0.0.1", false},
|
{ln2, "127.0.0.1", false},
|
||||||
{ln2, "127.0.0.1:" + ln2port, true},
|
{ln2, "127.0.0.1:" + ln2port, true},
|
||||||
} {
|
} {
|
||||||
|
|
Loading…
Add table
Reference in a new issue