Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rsplwe committed Dec 26, 2024
1 parent 8306ed0 commit c5007c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/com/rsplwe/esurfing/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class Client(private val options: Options) {
Session.free()
}

States.resetAlgoId()
States.refreshClientId()
States.refreshStates()

initSession()
if (Session.getSessionId() == 0.toLong()) {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/com/rsplwe/esurfing/DialerApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ object DialerApp {
}
}
})
States.refreshStates()
client.run()
}
}
10 changes: 4 additions & 6 deletions src/main/kotlin/com/rsplwe/esurfing/States.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ object States {
val rootDir = File("target")

var clientId = ""
var algoId = "00000000-0000-0000-0000-000000000000"
var macAddress = randomMACAddress()
var algoId = ""
var macAddress = ""
var ticket = ""
var userIp = ""
var acIp = ""
Expand All @@ -26,11 +26,9 @@ object States {
var extraCfgUrl = HashMap<String, String>()
var isLogged = false

fun refreshClientId() {
fun refreshStates() {
this.clientId = UUID.randomUUID().toString().lowercase()
}

fun resetAlgoId(){
this.algoId = "00000000-0000-0000-0000-000000000000"
this.macAddress = randomMACAddress()
}
}

0 comments on commit c5007c6

Please sign in to comment.