mirror of https://github.com/cbeuw/Cloak
Merge pull request #108 from NeonSludge/master
Fix incorrect config field name for remote port in plugin mode
This commit is contained in:
commit
853174bb14
|
|
@ -6,10 +6,11 @@ import (
|
|||
"encoding/base64"
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/cbeuw/Cloak/internal/client"
|
||||
mux "github.com/cbeuw/Cloak/internal/multiplex"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"os"
|
||||
)
|
||||
|
||||
var version string
|
||||
|
|
@ -84,7 +85,7 @@ func main() {
|
|||
rawConfig.RemoteHost = os.Getenv("SS_REMOTE_HOST")
|
||||
}
|
||||
if rawConfig.RemotePort == "" {
|
||||
rawConfig.RemoteHost = os.Getenv("SS_REMOTE_PORT")
|
||||
rawConfig.RemotePort = os.Getenv("SS_REMOTE_PORT")
|
||||
}
|
||||
if rawConfig.LocalHost == "" {
|
||||
rawConfig.LocalHost = os.Getenv("SS_LOCAL_HOST")
|
||||
|
|
|
|||
Loading…
Reference in New Issue