v0.2.0
ADDED: * The ability to show both IPv4 and IPv6 addresses (if the client has dual-stack and either the server does as well or a separate ClientInfo is running on the "other" net family).
This commit is contained in:
@@ -24,7 +24,7 @@ const (
|
||||
trueUaFieldStr string = "Yes"
|
||||
falseUaFieldStr string = "No"
|
||||
dfltIndent string = " "
|
||||
httpRealHdr string = "X-ClientInfo-RealIP"
|
||||
httpRealHdr string = "X-ClientInfo-RealIP" // TODO: advise https://nginx.org/en/docs/http/ngx_http_realip_module.html NGINX module? Allow config for user-specified header?
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -35,6 +35,8 @@ var (
|
||||
Funcs(
|
||||
template.FuncMap{
|
||||
"getTitle": getTitle,
|
||||
"getIpver": getIpver,
|
||||
"safeUrl": safeUrl,
|
||||
},
|
||||
).ParseFS(tplDir, "tpl/*.tpl"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user