@@ -73,14 +73,14 @@ func httpHandler(w http.ResponseWriter, req *http.Request) {
7373 func () (bool , error ) {
7474 sendToClient (client , map [string ]any {
7575 "success" : true ,
76- "message" : "Host is reachable. " ,
76+ "message" : "Host is reachable" ,
7777 })
7878 return true , nil
7979 },
8080 func () (bool , error ) {
8181 sendToClient (client , map [string ]any {
8282 "success" : false ,
83- "message" : "Host is unreachable. " ,
83+ "message" : "Host is unreachable" ,
8484 })
8585 return false , nil
8686 },
@@ -95,7 +95,7 @@ func httpHandler(w http.ResponseWriter, req *http.Request) {
9595
9696 sendToClient (client , map [string ]any {
9797 "success" : false ,
98- "message" : "Sending wakeup packets... " ,
98+ "message" : "Sending wakeup packets" ,
9999 })
100100
101101 addr := body .IP + ":9"
@@ -114,7 +114,7 @@ func httpHandler(w http.ResponseWriter, req *http.Request) {
114114 sendToClient (client , map [string ]any {
115115 "success" : false ,
116116 "error" : true ,
117- "message" : "Could not wake up host. " ,
117+ "message" : "Could not wake up host" ,
118118 })
119119
120120 closeClient (client )
@@ -132,15 +132,15 @@ func httpHandler(w http.ResponseWriter, req *http.Request) {
132132 func () (bool , error ) {
133133 sendToClient (client , map [string ]any {
134134 "success" : true ,
135- "message" : "Host is now reachable. " ,
135+ "message" : "Host is now reachable" ,
136136 })
137137 return true , nil
138138 },
139139 func () (bool , error ) {
140140 sendToClient (client , map [string ]any {
141141 "success" : false ,
142142 "error" : true ,
143- "message" : "Host is still unreachable. " ,
143+ "message" : "Host is still unreachable" ,
144144 })
145145 return false , nil
146146 },
@@ -162,14 +162,14 @@ func httpHandler(w http.ResponseWriter, req *http.Request) {
162162 logger .Debug ("Host is now reachable." )
163163 sendToClient (client , map [string ]any {
164164 "success" : true ,
165- "message" : "Host is now reachable. " ,
165+ "message" : "Host is now reachable" ,
166166 })
167167 } else if ! success && err == nil {
168168 logger .Debug ("Host is still unreachable." )
169169 sendToClient (client , map [string ]any {
170170 "success" : false ,
171171 "error" : true ,
172- "message" : "Host is still unreachable. " ,
172+ "message" : "Host is still unreachable" ,
173173 })
174174 }
175175
0 commit comments