Compare commits

..

4 Commits

Author SHA1 Message Date
Vladislav Yarmak
45c6521777 bump snap version 2021-03-06 22:27:02 +02:00
Snawoot
db109ce9ad Merge pull request #16 from rany2/master
Fix #15
2021-03-06 22:26:05 +02:00
rany
16192a36ba Fix #15 2021-03-06 22:09:39 +02:00
Vladislav Yarmak
d75ab999c8 bump snap version 2021-03-06 21:16:37 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: hola-proxy
version: '1.1.2'
version: '1.2.1'
summary: Standalone Hola proxy client.
description: |
Standalone Hola proxy client. Just run it and it'll start plain HTTP proxy server forwarding traffic via Hola proxies of your choice.

View File

@@ -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 {