Integrate relay into peer conn

- extend mgm with relay address
- extend signaling with remote peer's relay address
- start setup relay connection before engine start
This commit is contained in:
Zoltan Papp
2024-06-14 14:40:31 +02:00
parent 38f2a59d1b
commit 64f949abbb
12 changed files with 1875 additions and 2680 deletions
File diff suppressed because it is too large Load Diff
+2
View File
@@ -146,6 +146,8 @@ message WiretrusteeConfig {
// a Signal server config
HostConfig signal = 3;
string RelayAddress = 4;
}
// HostConfig describes connection properties of some server (e.g. STUN, Signal, Management)
+4 -3
View File
@@ -32,9 +32,10 @@ const (
// Config of the Management service
type Config struct {
Stuns []*Host
TURNConfig *TURNConfig
Signal *Host
Stuns []*Host
TURNConfig *TURNConfig
RelayAddress string
Signal *Host
Datadir string
DataStoreEncryptionKey string
+1
View File
@@ -450,6 +450,7 @@ func toWiretrusteeConfig(config *Config, turnCredentials *TURNCredentials) *prot
Uri: config.Signal.URI,
Protocol: ToResponseProto(config.Signal.Proto),
},
RelayAddress: config.RelayAddress,
}
}