Fix #1
This commit is contained in:
parent
1f4c5be640
commit
785c63530a
@ -11,7 +11,6 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
|
||||
func (api *APIClient) debugPrintf(format string, obj ...interface{}) {
|
||||
if api.Debug {
|
||||
fmt.Println(fmt.Sprintf(format, obj...))
|
||||
|
18
api.go
18
api.go
@ -81,13 +81,17 @@ type pagination struct {
|
||||
|
||||
// UserPackage represents a proxy package purchased from proxybonanza.com.
|
||||
type UserPackage struct {
|
||||
ID int `json:"id"`
|
||||
CustomName interface{} `json:"custom_name"`
|
||||
Login string `json:"login"`
|
||||
Password string `json:"password"`
|
||||
Expires time.Time `json:"expires"`
|
||||
Bandwidth int64 `json:"bandwidth"`
|
||||
LastIPChange time.Time `json:"last_ip_change"`
|
||||
ID int `json:"id"`
|
||||
CustomName interface{} `json:"custom_name"`
|
||||
Login string `json:"login"`
|
||||
Password string `json:"password"`
|
||||
Expires time.Time `json:"expires"`
|
||||
Bandwidth int64 `json:"bandwidth"`
|
||||
|
||||
// FIXME:
|
||||
// See https://github.com/yunginnanet/ProxyGonanza/issues/1
|
||||
// LastIPChange time.Time `json:"last_ip_change"`
|
||||
|
||||
LowBanwidthNotificationPercent int `json:"low_banwidth_notification_percent"`
|
||||
Package PackageDetails `json:"package"`
|
||||
BandwidthGb float64 `json:"bandwidth_gb"`
|
||||
|
@ -37,6 +37,6 @@ func main() {
|
||||
fmt.Printf("\nfound %d auth IPs\n", len(authips))
|
||||
for _, i := range authips {
|
||||
pretty, _ := json.MarshalIndent(i, "", "\t")
|
||||
fmt.Print(string(pretty)+"\n")
|
||||
fmt.Print(string(pretty) + "\n")
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ func main() {
|
||||
|
||||
println("deleted " + strconv.Itoa(deleted) + " IPs successfully")
|
||||
|
||||
|
||||
println("adding current IP to all packages...")
|
||||
count := c.AddCurrentIPtoAllPackages()
|
||||
if count == 0 {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
Debug = false
|
||||
Debug = false
|
||||
APIKey string
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user