File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ require (
11
11
gopkg.in/yaml.v3 v3.0.1
12
12
)
13
13
14
- require golang.org/x/net v0.23.0 // indirect
14
+ require (
15
+ golang.org/x/net v0.23.0 // indirect
16
+ golang.org/x/sys v0.18.0 // indirect
17
+ )
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
10
10
github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
11
11
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs =
12
12
golang.org/x/net v0.23.0 /go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg =
13
+ golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4 =
14
+ golang.org/x/sys v0.18.0 /go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA =
13
15
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4 =
14
16
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 /go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0 =
15
17
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI =
Original file line number Diff line number Diff line change 1
1
package publish
2
2
3
3
import (
4
- "github.com/RoboCup-SSL/ssl-game-controller/internal/app/state"
5
- "google.golang.org/protobuf/proto"
6
4
"log"
7
5
"net"
6
+
7
+ "github.com/RoboCup-SSL/ssl-game-controller/internal/app/state"
8
+ "golang.org/x/net/ipv4"
9
+ "google.golang.org/protobuf/proto"
8
10
)
9
11
10
12
const maxDatagramSize = 8192
@@ -51,6 +53,11 @@ func (p *Publisher) connect() bool {
51
53
log .Printf ("Could not connect to '%v': %v" , addr , err )
52
54
continue
53
55
}
56
+ conn2 := ipv4 .NewPacketConn (conn )
57
+ err = conn2 .SetMulticastTTL (32 )
58
+ if err != nil {
59
+ log .Printf ("Could not set TTL to 32: %v" , err )
60
+ }
54
61
55
62
if err := conn .SetWriteBuffer (maxDatagramSize ); err != nil {
56
63
log .Printf ("Could not set write buffer to %v." , maxDatagramSize )
You can’t perform that action at this time.
0 commit comments