Skip to content

Commit

Permalink
fix function handler not being called correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed Jun 2, 2020
1 parent 1520624 commit b7884b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reverse-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func handleFunctionCall(l *net.UDPConn, a *net.UDPAddr, m *coap.Message) *coap.M

if ok {
// call function and return results
resp, err := http.Get("http://" + handler[rand.Intn(len(handler))] + ":8000")
resp, err := http.Get("http://" + handler[rand.Intn(len(handler))] + ":8000/run")

if err != nil {
return &coap.Message{
Expand Down

0 comments on commit b7884b2

Please sign in to comment.