From e0aeeb09d161fb0b855e1979e19d3a8f591a1e0b Mon Sep 17 00:00:00 2001 From: arnaucode Date: Wed, 21 Jun 2017 20:08:46 +0200 Subject: [PATCH] minimal config changes --- config.json | 2 +- handlers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }