remove unecessary declaration of 'creds' variable
This commit is contained in:
parent
07b5f76b66
commit
4b261e45b8
@ -33,8 +33,7 @@ func main() {
|
|||||||
|
|
||||||
log.Printf(cfg.Creds)
|
log.Printf(cfg.Creds)
|
||||||
|
|
||||||
var creds socks5.StaticCredentials
|
creds, err := getCredentials(cfg)
|
||||||
creds, err = getCredentials(cfg)
|
|
||||||
|
|
||||||
if len(creds) > 0 {
|
if len(creds) > 0 {
|
||||||
cator := socks5.UserPassAuthenticator{Credentials: creds}
|
cator := socks5.UserPassAuthenticator{Credentials: creds}
|
||||||
|
Loading…
Reference in New Issue
Block a user