Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
aztecrabbit committed Jan 27, 2020
1 parent 84a220f commit 3cc0b7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Configurations
Run `./brainfuck-psiphon-pro-go` first to export all default settings.


#### Pro Version
### Pro Version

...
"PsiphonCore": 1,
Expand All @@ -85,7 +85,7 @@ Run `./brainfuck-psiphon-pro-go` first to export all default settings.
...


#### Rules
### Rules

**Xl Iflix or Axis Gaming (Default)**

Expand Down
8 changes: 4 additions & 4 deletions src/libpsiphon/libpsiphon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 3cc0b7b

Please sign in to comment.