diff --git a/config.json b/config.json index 52451c1..ea90962 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "serverIP": "127.0.0.1", + "serverIP": "192.168.1.36", "serverPort": "3050", "folder": "files", "blockedIPs": [ diff --git a/handlers.go b/handlers.go index 39905d1..89020c3 100644 --- a/handlers.go +++ b/handlers.go @@ -63,5 +63,5 @@ func NewImage(w http.ResponseWriter, r *http.Request) { fmt.Println(err) } - fmt.Fprintln(w, config.ServerIP+":"+config.ServerPort+"/images/"+fileName) + fmt.Fprintln(w, "http://"+config.ServerIP+":"+config.ServerPort+"/images/"+fileName) }