diff --git a/utils.go b/utils.go index 2b86c3c..66b3f27 100644 --- a/utils.go +++ b/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 {