mirror of
https://github.com/Snawoot/hola-proxy.git
synced 2026-04-13 10:38:16 +00:00
4
utils.go
4
utils.go
@@ -104,13 +104,13 @@ func get_endpoint(tunnels *ZGetTunnelsResponse, typ string, trial bool) (string,
|
||||
return "", errors.New("No tunnels found in API response")
|
||||
}
|
||||
var port uint16
|
||||
if typ == "direct" {
|
||||
if typ == "direct" || typ == "lum" {
|
||||
if trial {
|
||||
port = tunnels.Port.Trial
|
||||
} else {
|
||||
port = tunnels.Port.Direct
|
||||
}
|
||||
} else if typ == "peer" || typ == "lum" {
|
||||
} else if typ == "peer" {
|
||||
if trial {
|
||||
port = tunnels.Port.TrialPeer
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user