Forward bridge fingerprint

gitlab 28651
This commit is contained in:
Arlo Breault 2022-03-08 16:27:52 -05:00
parent 281d917beb
commit b563141c6a
7 changed files with 41 additions and 11 deletions

View file

@ -139,10 +139,11 @@ func (ctx *BrokerContext) AddSnowflake(id string, proxyType string, natType stri
return snowflake
}
// Client offer contains an SDP and the NAT type of the client
// Client offer contains an SDP, bridge fingerprint and the NAT type of the client
type ClientOffer struct {
natType string
sdp []byte
natType string
sdp []byte
fingerprint string
}
func main() {

View file

@ -130,8 +130,9 @@ func (i *IPC) ClientOffers(arg messages.Arg, response *[]byte) error {
}
offer := &ClientOffer{
natType: req.NAT,
sdp: []byte(req.Offer),
natType: req.NAT,
sdp: []byte(req.Offer),
fingerprint: req.Fingerprint,
}
// Only hand out known restricted snowflakes to unrestricted clients