Skip to content

Commit ff72af0

Browse files
authored
Added unix-socket support in msgpack Router
1 parent a34dd20 commit ff72af0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/orchestrator/orchestrator.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,10 @@ func getDevices() []string {
665665
}
666666

667667
func disconnectSerialFromRPCRouter(ctx context.Context, portAddress string) func() {
668-
c, err := net.Dial("tcp", ":8900")
668+
var msgPackRouterAddr = paths.TempDir().Join("msgpack-router.sock").String()
669+
c, err := net.Dial("unix", msgPackRouterAddr)
669670
if err != nil {
670-
slog.Error("Failed to connect to router", "addr", ":8900", "err", err)
671+
slog.Error("Failed to connect to router", "addr", msgPackRouterAddr, "err", err)
671672
return func() {}
672673
}
673674
conn := msgpackrpc.NewConnection(c, c, nil, nil, nil)

0 commit comments

Comments
 (0)