mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 23:29:28 +00:00
Go DNS lookup order hack
This commit is contained in:
@@ -2,6 +2,7 @@ package cmds
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/rancher/k3s/pkg/version"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -12,6 +13,13 @@ var (
|
||||
debug bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
// hack - force "file,dns" lookup order if go dns is used
|
||||
if os.Getenv("RES_OPTIONS") == "" {
|
||||
os.Setenv("RES_OPTIONS", " ")
|
||||
}
|
||||
}
|
||||
|
||||
func NewApp() *cli.App {
|
||||
app := cli.NewApp()
|
||||
app.Name = appName
|
||||
|
||||
Reference in New Issue
Block a user