mirror of
https://github.com/fosrl/olm.git
synced 2026-02-21 04:16:42 +00:00
Handle relay endpoint dynamically now
This commit is contained in:
@@ -110,6 +110,12 @@ type RemovePeerData struct {
|
||||
SiteId int `json:"siteId"`
|
||||
}
|
||||
|
||||
type RelayPeerData struct {
|
||||
SiteId int `json:"siteId"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
PublicKey string `json:"publicKey"`
|
||||
}
|
||||
|
||||
func (b *fixedPortBind) Open(port uint16) ([]conn.ReceiveFunc, uint16, error) {
|
||||
// Ignore the requested port and use our fixed port
|
||||
return b.Bind.Open(b.port)
|
||||
|
||||
Reference in New Issue
Block a user