Skip to content

Commit 15817b5

Browse files
authored
Fix: stdin config priority (#353)
1 parent d538823 commit 15817b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proxy/option.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (o *Option) Handle() error {
8888
}
8989

9090
func (o *Option) Priority() int {
91-
return 1
91+
return -1
9292
}
9393

9494
func init() {
@@ -119,9 +119,9 @@ func (o *StdinOption) Handle() error {
119119
if o.suppressHint == nil || !*o.suppressHint {
120120
fmt.Printf("Trojan-Go %s (%s/%s)\n", constant.Version, runtime.GOOS, runtime.GOARCH)
121121
if isJSON {
122-
fmt.Println("Reading in JSON configuration from STDIN.")
122+
fmt.Println("Reading JSON configuration from stdin.")
123123
} else {
124-
fmt.Println("Reading in YAML configuration from STDIN.")
124+
fmt.Println("Reading YAML configuration from stdin.")
125125
}
126126
}
127127

0 commit comments

Comments
 (0)