Skip to content

Commit

Permalink
config: service identity is required
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <[email protected]>
  • Loading branch information
hexian000 committed Oct 7, 2024
1 parent 51221be commit 3e15c8c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions v3/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
)

type TunnelConfig struct {
// (optional) local service identity
Service string `json:"service,omitempty"`
// (optional) remote service
RemoteService string `json:"remoteservice,omitempty"`
// local service identity
Service string `json:"service"`
// remote service
RemoteService string `json:"remoteservice"`
// (optional) mux listen address
MuxListen string `json:"muxlisten,omitempty"`
// (optional) mux dial address
Expand All @@ -33,8 +33,6 @@ type TunnelConfig struct {

// Config file
type Config struct {
// (optional) default remote service
RemoteService string `json:"remoteservice,omitempty"`
// tunnel configs
Tunnels []TunnelConfig `json:"tunnel"`
// (optional) keep tunnels connected
Expand Down

0 comments on commit 3e15c8c

Please sign in to comment.