Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.

Commit 513523b

Browse files
committed
0.0.0.0:8080에 바인딩 함
localhost는 외부에서 접근이 되지 않아서 0.0.0.0로 바인딩 변경
1 parent 8dc8a88 commit 513523b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import (
88
)
99

1010
func main() {
11-
fmt.Println("binding to localhost:8080")
12-
http.ListenAndServe("localhost:8080", goproxy.New())
11+
fmt.Println("binding to 0.0.0.0:8080")
12+
http.ListenAndServe("0.0.0.0:8080", goproxy.New())
1313
}

0 commit comments

Comments
 (0)