feat(tunnel): require explicit target schemes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-05-15 13:16:49 -04:00
parent 9edea27148
commit 8dfb14f1e7
7 changed files with 78 additions and 19 deletions

View File

@@ -53,7 +53,7 @@ type ServerConfig struct {
type ClientConfig struct {
BaseConfig
TunnelName string `json:"name" description:"Tunnel name"`
TunnelTarget string `json:"target" description:"Tunnel target address"`
TunnelTarget string `json:"target" description:"Tunnel target address (tcp://, http://, or https://)"`
}
func (c *ClientConfig) Validate() error {