mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 17:40:26 +08:00
15 lines
397 B
Go
15 lines
397 B
Go
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
|
|
package utils_test
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeNode/internal/utils"
|
|
"testing"
|
|
)
|
|
|
|
func TestParseAddrHost(t *testing.T) {
|
|
for _, addr := range []string{"a", "example.com", "example.com:1234", "::1", "[::1]", "[::1]:8080"} {
|
|
t.Log(addr + " => " + utils.ParseAddrHost(addr))
|
|
}
|
|
}
|