Skip to content

Commit

Permalink
add tls env
Browse files Browse the repository at this point in the history
  • Loading branch information
ProxyGo committed May 2, 2024
1 parent 81b403d commit b0a79d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions socks/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ func(config *Config) SetEnv(){
if password != "" {
config.Password = password
}
auto := os.Getenv("AUTO")
if auto == "true" {
tls := os.Getenv("TLS")
if tls == "true" {
config.TLS = true
}
tlsAuto := os.Getenv("TLS_AUTO")
if tlsAuto == "true" {
config.TLSAuto = true
}
domain := os.Getenv("DOMAIN")
Expand Down

0 comments on commit b0a79d4

Please sign in to comment.