added broadcast roomID
This commit is contained in:
@@ -40,14 +40,14 @@ func BroadcastServerToBackend() error {
|
|||||||
respIpv4orIPv6 = "http://" + respIpv4orIPv6
|
respIpv4orIPv6 = "http://" + respIpv4orIPv6
|
||||||
|
|
||||||
// Get room information
|
// Get room information
|
||||||
_, err = ReadRoomsFile()
|
room, err := ReadRoomsFile()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Game session url
|
// Game session url
|
||||||
//+ file.ID
|
//+ file.ID
|
||||||
gameSession.Link = respIpv4orIPv6 + ":" + config.NATEscapeServerPort + "/?id="
|
gameSession.Link = respIpv4orIPv6 + ":" + config.NATEscapeServerPort + "/?id=" + room.ID
|
||||||
// Rate for the game session
|
// Rate for the game session
|
||||||
gameSession.Rate = config.Rate
|
gameSession.Rate = config.Rate
|
||||||
// Server specs to struct GameSession
|
// Server specs to struct GameSession
|
||||||
|
|||||||
Reference in New Issue
Block a user