Merge pull request #50 from super1207/master

允许崩溃后快速重启
This commit is contained in:
白池 2023-11-16 00:25:27 +08:00 committed by GitHub
commit ba8322dc55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -86,9 +86,9 @@ internal object VisitorSvc: BaseSvc() {
it.putLong(moe.fuqiuluo.shamrock.remote.service.data.profile.ProfileProtocolConst.PARAM_TARGET_UIN, target)
it.putByteArray("vCookies", card.vCookies)
it.putBoolean("nearby_people", true)
it.putInt("favoriteSource", SUB_FROM_SHARE_CARD_TROOP)
it.putInt("favoriteSource", FROM_CONTACTS_TAB)
it.putInt("iCount", count)
it.putInt("from", FROM_SHARE_CARD)
it.putInt("from", FROM_CONTACTS_TAB)
}
return Result.success(Unit)
}

View File

@ -81,6 +81,7 @@ internal class InitRemoteService : IAction {
}
require(config.port in 0 .. 65536) { "WebSocketServer端口不合法" }
val server = WebSocketService(config.address, config.port!!)
server.isReuseAddr = true
server.start()
} catch (e: Throwable) {
LogCenter.log(e.stackTraceToString(), Level.ERROR)