mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
using ref of resolveConfig
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user