Send initial "welcome" message when clients connect.

This can be used to detect server features before performing the
actual "hello" handshake.
This commit is contained in:
Joachim Bauch
2022-07-07 09:57:10 +02:00
parent 32a2f822e0
commit f7db8a38e1
7 changed files with 183 additions and 60 deletions
+1 -1
View File
@@ -591,7 +591,7 @@ func (s *ProxyServer) processMessage(client *ProxyClient, data []byte) {
Hello: &signaling.HelloProxyServerMessage{
Version: signaling.HelloVersion,
SessionId: session.PublicId(),
Server: &signaling.HelloServerMessageServer{
Server: &signaling.WelcomeServerMessage{
Version: s.version,
Country: s.country,
},