From 15817b5060ffc6284d9ba3a3defe99614a426d57 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Mon, 31 May 2021 14:59:08 +0800 Subject: [PATCH] Fix: stdin config priority (#353) --- proxy/option.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/option.go b/proxy/option.go index 978b88f8d..b0d5d932a 100644 --- a/proxy/option.go +++ b/proxy/option.go @@ -88,7 +88,7 @@ func (o *Option) Handle() error { } func (o *Option) Priority() int { - return 1 + return -1 } func init() { @@ -119,9 +119,9 @@ func (o *StdinOption) Handle() error { if o.suppressHint == nil || !*o.suppressHint { fmt.Printf("Trojan-Go %s (%s/%s)\n", constant.Version, runtime.GOOS, runtime.GOARCH) if isJSON { - fmt.Println("Reading in JSON configuration from STDIN.") + fmt.Println("Reading JSON configuration from stdin.") } else { - fmt.Println("Reading in YAML configuration from STDIN.") + fmt.Println("Reading YAML configuration from stdin.") } }