mirror of
https://github.com/openziti/zrok.git
synced 2025-06-19 17:27:54 +02:00
display the requested path in the test endpoint ui
This commit is contained in:
parent
0b9d61b961
commit
3ed31e60e0
@ -388,6 +388,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="info">
|
<div id="info">
|
||||||
|
<h1>{{ .RequestedPath }}</h1>
|
||||||
|
|
||||||
<h2>{{ .Now }}</h2>
|
<h2>{{ .Now }}</h2>
|
||||||
|
|
||||||
<h3>At This Endpoint:</h3>
|
<h3>At This Endpoint:</h3>
|
||||||
|
@ -61,21 +61,23 @@ func (cmd *testEndpointCommand) serveIndex(w http.ResponseWriter, r *http.Reques
|
|||||||
}
|
}
|
||||||
|
|
||||||
type endpointData struct {
|
type endpointData struct {
|
||||||
Now time.Time
|
RequestedPath string
|
||||||
RemoteAddr string
|
Now time.Time
|
||||||
Host string
|
RemoteAddr string
|
||||||
HostDetail string
|
Host string
|
||||||
Ips string
|
HostDetail string
|
||||||
HostHeader string
|
Ips string
|
||||||
Headers map[string][]string
|
HostHeader string
|
||||||
|
Headers map[string][]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func newEndpointData(r *http.Request) *endpointData {
|
func newEndpointData(r *http.Request) *endpointData {
|
||||||
ed := &endpointData{
|
ed := &endpointData{
|
||||||
Now: time.Now(),
|
RequestedPath: r.RequestURI,
|
||||||
HostHeader: r.Host,
|
Now: time.Now(),
|
||||||
Headers: r.Header,
|
HostHeader: r.Host,
|
||||||
RemoteAddr: r.RemoteAddr,
|
Headers: r.Header,
|
||||||
|
RemoteAddr: r.RemoteAddr,
|
||||||
}
|
}
|
||||||
ed.getHostInfo()
|
ed.getHostInfo()
|
||||||
ed.getIps()
|
ed.getIps()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user