mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
feat: grpc / web get real ip
This commit is contained in:
1 parent
da4cdb8fe6
commit
f5776c7464
5 files changed
+78
-5
No files matched your search
+6
-1
@@ -4,7 +4,12 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const CtxKeyAuthorizedUser = "ckau"
|
||||
const (
|
||||
CtxKeyAuthorizedUser = "ckau"
|
||||
CtxKeyRealIPStr = "ckri"
|
||||
)
|
||||
|
||||
type CtxKeyRealIP struct{}
|
||||
|
||||
type Common struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id,omitempty"`
|
||||
|
||||
Reference in new issue
Block a user