From 817f3960b81fc53f8991b4bb16a8922cb8317baa Mon Sep 17 00:00:00 2001 From: Ning Xie Date: Wed, 28 Jun 2017 17:05:54 +0800 Subject: [PATCH] fix hard code about server type (#759) --- coremain/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coremain/run.go b/coremain/run.go index 837a51c77..730268371 100644 --- a/coremain/run.go +++ b/coremain/run.go @@ -125,7 +125,7 @@ func confLoader(serverType string) (caddy.Input, error) { } if conf == "stdin" { - return caddy.CaddyfileFromPipe(os.Stdin, "dns") + return caddy.CaddyfileFromPipe(os.Stdin, serverType) } contents, err := ioutil.ReadFile(conf)