Skip to content

Commit

Permalink
Battle-Server-Broadcast: port (previously fixed to 9999) now can be c…
Browse files Browse the repository at this point in the history
…onfigured so it works for AoE 1.
  • Loading branch information
luskaner committed Nov 8, 2024
1 parent 97f98b0 commit 12229a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions battle-server-broadcast/battleServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ func calculateBroadcastIp(ip net.IP, mask net.IPMask) net.IP {
return broadcast
}

func CloneAnnouncements(mostPriority *net.IPNet, restInterfaces []*net.IPNet) (err error) {
func CloneAnnouncements(mostPriority *net.IPNet, restInterfaces []*net.IPNet, port int) (err error) {
priorityUdpAddress := &net.UDPAddr{
IP: mostPriority.IP,
Port: 9999,
Port: port,
}

var conn *net.UDPConn
Expand Down

0 comments on commit 12229a0

Please sign in to comment.