Files
-Fonu/internal/frp-1.0.2/config_test.go
T

13 lines
300 B
Go
Raw Normal View History

2026-09-23 09:40:59 +08:00
package frp
import "testing"
func TestNormalizeServerAddr(t *testing.T) {
if got := normalizeServerAddr("http://127.0.0.1"); got != "127.0.0.1" {
t.Fatalf("got %q", got)
}
if got := normalizeServerAddr("https://frp.example.com/path"); got != "frp.example.com" {
t.Fatalf("got %q", got)
}
}