From 3cc0b7b84fa43c00a241ab0fb50dd415abc00cb3 Mon Sep 17 00:00:00 2001 From: Aztec Rabbit Date: Tue, 28 Jan 2020 02:46:53 +0700 Subject: [PATCH] ... --- README.md | 4 ++-- src/libpsiphon/libpsiphon.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 67658ee..f8afc03 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Configurations Run `./brainfuck-psiphon-pro-go` first to export all default settings. -#### Pro Version +### Pro Version ... "PsiphonCore": 1, @@ -85,7 +85,7 @@ Run `./brainfuck-psiphon-pro-go` first to export all default settings. ... -#### Rules +### Rules **Xl Iflix or Axis Gaming (Default)** diff --git a/src/libpsiphon/libpsiphon.go b/src/libpsiphon/libpsiphon.go index f5e9e78..acb9e35 100644 --- a/src/libpsiphon/libpsiphon.go +++ b/src/libpsiphon/libpsiphon.go @@ -21,13 +21,13 @@ var ( DefaultConfig = &Config{ CoreName: "psiphon-tunnel-core", Tunnel: 1, - Region: "", + Region: "SG", Protocols: []string{ "FRONTED-MEEK-HTTP-OSSH", "FRONTED-MEEK-OSSH", }, TunnelWorkers: 8, - KuotaDataLimit: 4, + KuotaDataLimit: 4000000, Authorizations: make([]string, 0), } DefaultKuotaData = &KuotaData{ @@ -100,8 +100,8 @@ func (p *Psiphon) GetAuthorizations() []string { } func (p *Psiphon) CheckKuotaDataLimit(sent float64, received float64) bool { - if p.Config.KuotaDataLimit != 0 && int(p.KuotaData.Port[p.ListenPort]["all"]) >= (p.Config.KuotaDataLimit * 1048576) && - int(sent) == 0 && int(received) <= 20000 { + if p.Config.KuotaDataLimit != 0 && int(p.KuotaData.Port[p.ListenPort]["all"]) >= p.Config.KuotaDataLimit && + int(sent) == 0 && int(received) <= 64000 { return false }