mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-05 07:16:54 +08:00

* hotfix: fix CVE * feat: prefer use cmd rather than magic dns to set dns on linux * feat: update go work sum * feat: update ut
16 lines
261 B
Go
16 lines
261 B
Go
package dns
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestFix(t *testing.T) {
|
|
domain := "authors"
|
|
search := []string{"default.svc.cluster.local", "svc.cluster.local", "cluster.local"}
|
|
result := fix(domain, search)
|
|
for _, s := range result {
|
|
fmt.Println(s)
|
|
}
|
|
}
|