Compare commits

..

7 Commits

Author SHA1 Message Date
Vladislav Yarmak
e67b30a116 bump snap version 2021-03-08 01:08:17 +02:00
Snawoot
edc367f194 Merge pull request #22 from rany2/master
Fix nonsense help page
2021-03-08 01:07:48 +02:00
rany
ed77f8a254 help page update in README 2021-03-08 00:19:58 +02:00
rany
45977423f6 Fix -dont-use-trial 2021-03-08 00:18:53 +02:00
rany
64c90af10b change wording in readme 2021-03-08 00:15:55 +02:00
rany
c3180ad245 change wording 2021-03-08 00:15:12 +02:00
rany
0052dea171 Fix nonsense help page 2021-03-08 00:13:33 +02:00
4 changed files with 7 additions and 5 deletions

View File

@@ -154,7 +154,9 @@ Usage of /home/user/go/bin/hola-proxy:
-country string
desired proxy location (default "us")
-dont-use-trial
use regular ports instead of trial ports (default true)
use regular ports instead of trial ports
-force-port-field string
force specific port field/num (example 24232 or lum)
-limit uint
amount of proxies in retrieved list (default 3)
-list-countries

View File

@@ -63,7 +63,7 @@ func parse_args() CLIArgs {
flag.StringVar(&args.resolver, "resolver", "https://cloudflare-dns.com/dns-query",
"DNS/DoH/DoT resolver to workaround Hola blocked hosts. "+
"See https://github.com/ameshkov/dnslookup/ for upstream DNS URL format.")
flag.BoolVar(&args.use_trial, "dont-use-trial", true, "use regular ports instead of trial ports") // would be nice to not show in help page
flag.BoolVar(&args.use_trial, "dont-use-trial", false, "use regular ports instead of trial ports") // would be nice to not show in help page
flag.Parse()
if args.country == "" {
arg_fail("Country can't be empty string.")

View File

@@ -1,5 +1,5 @@
name: hola-proxy
version: '1.4.0'
version: '1.4.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

@@ -116,13 +116,13 @@ func get_endpoint(tunnels *ZGetTunnelsResponse, typ string, trial bool, force_po
}
if typ != "skip" {
if typ == "direct" || typ == "lum" || typ == "pool" || typ == "virt" {
if trial {
if !trial {
port = tunnels.Port.Trial
} else {
port = tunnels.Port.Direct
}
} else if typ == "peer" {
if trial {
if !trial {
port = tunnels.Port.TrialPeer
} else {
port = tunnels.Port.Peer