Skip to content

Commit

Permalink
implement ipv6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Mar 2, 2024
1 parent 64a201e commit 4cab371
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shin/shin.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,13 @@ func main() {
)
}

ipAddress = *instance.PublicIpAddress
if instance.Ipv6Address != nil {
ipAddress = *instance.Ipv6Address
} else if instance.PublicIpAddress != nil {
ipAddress = *instance.PublicIpAddress
} else {
log.Fatal("instance %s does not have an IP address", *instance.InstanceId)
}

if *registerHost {
err := register(instance, *registerAlias, *username)
Expand Down

0 comments on commit 4cab371

Please sign in to comment.