Add Allowed Relay Hostname Pattern Indication

This commit is contained in:
Shelikhoo 2022-04-13 17:51:17 +01:00
parent b09a2e09b3
commit 2ebdc89c42
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
4 changed files with 14 additions and 9 deletions

View file

@ -210,7 +210,7 @@ func (s *SignalingServer) pollOffer(sid string, proxyType string, acceptedRelayP
default:
numClients := int((tokens.count() / 8) * 8) // Round down to 8
currentNATTypeLoaded := getCurrentNATType()
body, err := messages.EncodeProxyPollRequest(sid, proxyType, currentNATTypeLoaded, numClients)
body, err := messages.EncodeProxyPollRequestWithRelayPrefix(sid, proxyType, currentNATTypeLoaded, numClients, acceptedRelayPattern)
if err != nil {
log.Printf("Error encoding poll message: %s", err.Error())
return nil, ""