mirror of
https://github.com/originalmk/archat-server.git
synced 2025-01-18 16:29:17 +00:00
Merged master into acceptallorigins
This commit is contained in:
commit
efb6a52ef6
@ -679,6 +679,12 @@ func (srvCtx *Context) handleUDP(data []byte, addr net.Addr) {
|
||||
return
|
||||
}
|
||||
|
||||
srvCtx.initiations = slices.DeleteFunc(srvCtx.initiations,
|
||||
func(i *common.Initiation) bool {
|
||||
return i.AbAPunchCode == matchedInitation.AbAPunchCode ||
|
||||
i.AbBPunchCode == matchedInitation.AbAPunchCode
|
||||
})
|
||||
|
||||
err = abA.sendRequest(common.StartChatFinishRequest{
|
||||
OtherSideNickname: matchedInitation.AbBNick,
|
||||
OtherSideAddress: matchedInitation.AbBAddress,
|
||||
|
Loading…
x
Reference in New Issue
Block a user