mirai/mirai-core/src
sandtechnology b7869888f0
StatSvc.Register: Provide SSO Ip and correct logic (#1240)
* StatSvc.Register: Provide SSO Ip and correct logic

* Remove unnessacy launch

Co-authored-by: Him188 <Him188@mamoe.net>

* Test for last polled ip

* Normal login test for last ip

* Fix test failed and remove debug code

* Fix unit test and build

* Optimize pollCurrent and pollAny method

* Use uOldSSOIp and uNewSSOIp only when protocol is PHONE

* Fix bug in toIpV4Long

* Fix new line in NettyBotNormalLoginTest.kt

* Using Inet4Address and toInt method for toIpV4Long

* Return Unsigned Long for toIpV4Long

* Remove unnessacy synchronized annotation

Co-authored-by: Him188 <Him188@mamoe.net>

* Using createAddress method instead of address

* Moving lastDisconnectedIp and lastConnectedIp to Server
List

* Fix build

* Fix build and remove empty line

* Keeping naming consistent

* Use bot.components instead of overrideComponents

Co-authored-by: Him188 <Him188@mamoe.net>

* Revert overrideComponents changes and add comment for overrideComponents

Co-authored-by: Him188 <Him188@mamoe.net>
2021-07-03 22:04:49 +08:00
..
androidMain/kotlin/utils/crypto ECDH: Replacing old curve, thanks to MiraiGo (#1237) 2021-06-23 14:59:12 +08:00
androidTest/kotlin Add SynchronizedStdoutLogger for tests 2021-07-01 11:06:58 +08:00
commonMain StatSvc.Register: Provide SSO Ip and correct logic (#1240) 2021-07-03 22:04:49 +08:00
commonTest/kotlin StatSvc.Register: Provide SSO Ip and correct logic (#1240) 2021-07-03 22:04:49 +08:00
jvmMain/kotlin Update copyright 2021-07-02 00:39:10 +08:00
jvmTest/kotlin Add MessageReceiptTest for #1371 2021-07-02 21:06:31 +08:00
main Rearrange protocol implementations 2020-11-01 15:07:32 +08:00