Skip to content

Commit

Permalink
Lock to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Jul 23, 2023
1 parent 0256b46 commit d327a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func main() {
go func() {
//TODO: Update these to be modifiable in the properties json.
//TODO: Also update the "fpProxy/api/" to be in the properties json.
log.Fatal(http.ListenAndServe(":"+proxySettings.ServerHTTPPort,
log.Fatal(http.ListenAndServe("127.0.0.1:"+proxySettings.ServerHTTPPort,
zipfs.EmptyFileServer(
proxySettings.ApiPrefix,
"",
Expand All @@ -236,12 +236,12 @@ func main() {
if proxySettings.LegacyUsePHPServer {
runLegacyPHP()
} else {
log.Fatal(http.ListenAndServe(":"+proxySettings.LegacyGoPort, getLegacyProxy()))
log.Fatal(http.ListenAndServe("127.0.0.1:"+proxySettings.LegacyGoPort, getLegacyProxy()))
}
}()

//Start PROXY server
log.Fatal(http.ListenAndServe(":"+proxySettings.ProxyPort, proxy))
log.Fatal(http.ListenAndServe("127.0.0.1:"+proxySettings.ProxyPort, proxy))
}

func runLegacyPHP() {
Expand Down

0 comments on commit d327a19

Please sign in to comment.