refactor: 重构StickySessions

This commit is contained in:
Skyxim
2022-05-17 13:28:54 +08:00
parent 891c2fe899
commit 0742f7db26
2 changed files with 27 additions and 42 deletions

View File

@ -89,9 +89,6 @@ type Metadata struct {
RemoteDst string `json:"remoteDestination"`
}
// avoid stack overflow
type jsonMetadata Metadata
func (m *Metadata) RemoteAddress() string {
return net.JoinHostPort(m.String(), m.DstPort)
}