mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 13:05:56 +00:00
jwt: add more helpers (DefaultRSA and DefaultHMAC)
Former-commit-id: fe06c0e0f4d7e121c678ffda7ac702ae865abd00
This commit is contained in:
@@ -1946,7 +1946,7 @@ func (ctx *context) GetDomain() string {
|
||||
if host, _, err := net.SplitHostPort(hostport); err == nil {
|
||||
// has port.
|
||||
switch host {
|
||||
case "127.0.0.1", "0.0.0.0", "::1", "[::1]", "0:0:0:0:0:0:0", "0:0:0:0:0:0:1":
|
||||
case "127.0.0.1", "0.0.0.0", "::1", "[::1]", "0:0:0:0:0:0:0:0", "0:0:0:0:0:0:0:1":
|
||||
// loopback.
|
||||
return "localhost"
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user