Skip to content

Commit

Permalink
Drop localhost to support crane registry serve in a container (#1746)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
  • Loading branch information
mattmoor committed Jun 25, 2023
1 parent fe268b7 commit b850480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crane/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Contents are only stored in memory, and when the process exits, pushed data is l
if port == "" {
port = "0"
}
listener, err := net.Listen("tcp", "localhost:"+port)
listener, err := net.Listen("tcp", ":"+port)
if err != nil {
log.Fatalln(err)
}
Expand Down

0 comments on commit b850480

Please sign in to comment.