sandbox: merge address and protocol to one url

Signed-off-by: Abel Feng <fshb1988@gmail.com>
This commit is contained in:
Abel Feng
2024-04-23 14:28:01 +08:00
parent c3b306240e
commit de38490ed6
19 changed files with 281 additions and 333 deletions

View File

@@ -52,13 +52,12 @@ type Sandbox struct {
}
type Endpoint struct {
Address string
Protocol string
Version uint32
Address string
Version uint32
}
func (e *Endpoint) IsValid() bool {
return e.Protocol != "" && e.Address != ""
return e.Address != ""
}
// NewSandbox creates an internally used sandbox type. This functions reminds