mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 10:22:41 +01:00
gateway bug fix
This commit is contained in:
@@ -277,8 +277,10 @@ func (self *GateWayPage) ApplyGateWay( gateway string ) bool {
|
||||
tmp,err := strconv.Atoi(parts[3])
|
||||
if err == nil {
|
||||
if tmp == 0 {
|
||||
tmp = tmp +1
|
||||
}else if tmp > 0 {
|
||||
tmp = tmp + 1
|
||||
}else if tmp == 1 {
|
||||
tmp = tmp + 1
|
||||
}else if tmp > 1 {
|
||||
tmp = tmp -1
|
||||
}
|
||||
parts[3] = strconv.Itoa(tmp)
|
||||
|
||||
Reference in New Issue
Block a user