From 16192a36bada278ce13b1c484d23ed113bae283b Mon Sep 17 00:00:00 2001 From: rany Date: Sat, 6 Mar 2021 22:09:39 +0200 Subject: [PATCH] Fix #15 --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {