using ref of resolveConfig

This commit is contained in:
naison
2021-11-01 23:51:53 +08:00
parent f877e81edf
commit 24b60c3b14
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ import (
)
// systemd-resolve --status, systemd-resolve --flush-caches
func SetupDNS(config miekgdns.ClientConfig) error {
func SetupDNS(config *miekgdns.ClientConfig) error {
tunName := os.Getenv("tunName")
if len(tunName) == 0 {
tunName = "tun0"

View File

@@ -16,7 +16,7 @@ import (
"strconv"
)
func SetupDNS(config miekgdns.ClientConfig) error {
func SetupDNS(config *miekgdns.ClientConfig) error {
getenv := os.Getenv("luid")
parseUint, err := strconv.ParseUint(getenv, 10, 64)
if err != nil {