add default port
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m46s

This commit is contained in:
matst80
2024-11-09 23:59:56 +01:00
parent cd7316c9f7
commit a82e4f10fe

View File

@@ -33,6 +33,9 @@ type RemoteGrain struct {
} }
func NewRemoteGrain(id CartId, address string) *RemoteGrain { func NewRemoteGrain(id CartId, address string) *RemoteGrain {
if !strings.Contains(address, ":") {
address = fmt.Sprintf("[%s]:1337", address)
}
return &RemoteGrain{ return &RemoteGrain{
Id: id, Id: id,
Address: address, Address: address,