supply refreshed device password to proxy

This commit is contained in:
Vladislav Yarmak 2021-04-02 01:23:38 +03:00
parent aa8c1f5366
commit 0d32dc273f

View file

@ -252,9 +252,8 @@ func run() int {
}
endpoint := ips[0]
authHdr := basic_auth_header(seclient.GetProxyCredentials())
auth := func() string {
return authHdr
return basic_auth_header(seclient.GetProxyCredentials())
}
handlerDialer := NewProxyDialer(endpoint.NetAddr(), fmt.Sprintf("%s0.%s", args.country, PROXY_SUFFIX), auth, dialer)