mirror of
https://github.com/fosrl/newt.git
synced 2026-04-11 04:16:40 +00:00
Pass the new data down from the websocket
This commit is contained in:
@@ -26,9 +26,9 @@ import (
|
||||
// HTTPTarget describes a single downstream HTTP or HTTPS service that the
|
||||
// proxy should forward requests to.
|
||||
type HTTPTarget struct {
|
||||
DestAddr string // IP address or hostname of the downstream service
|
||||
DestPort uint16 // TCP port of the downstream service
|
||||
UseHTTPS bool // When true the outbound leg uses HTTPS
|
||||
DestAddr string `json:"destAddr"` // IP address or hostname of the downstream service
|
||||
DestPort uint16 `json:"destPort"` // TCP port of the downstream service
|
||||
UseHTTPS bool `json:"useHttps"` // When true the outbound leg uses HTTPS
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -315,4 +315,4 @@ func (h *HTTPHandler) handleRequest(w http.ResponseWriter, r *http.Request) {
|
||||
r.Method, r.URL.RequestURI(), scheme, target.DestAddr, target.DestPort)
|
||||
|
||||
h.getProxy(target).ServeHTTP(w, r)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user