Skip to content

Commit

Permalink
Fix: stdin config priority (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier authored May 31, 2021
1 parent d538823 commit 15817b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (o *Option) Handle() error {
}

func (o *Option) Priority() int {
return 1
return -1
}

func init() {
Expand Down Expand Up @@ -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.")
}
}

Expand Down

0 comments on commit 15817b5

Please sign in to comment.