mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
client, pkg, server, test: replaced 'interface{}' with 'any' (#4611)
This commit is contained in:
@@ -24,7 +24,7 @@ type Router struct {
|
||||
httpUser string
|
||||
|
||||
// store any object here
|
||||
payload interface{}
|
||||
payload any
|
||||
}
|
||||
|
||||
func NewRouters() *Routers {
|
||||
@@ -33,7 +33,7 @@ func NewRouters() *Routers {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Routers) Add(domain, location, httpUser string, payload interface{}) error {
|
||||
func (r *Routers) Add(domain, location, httpUser string, payload any) error {
|
||||
domain = strings.ToLower(domain)
|
||||
|
||||
r.mutex.Lock()
|
||||
|
||||
Reference in New Issue
Block a user