mirror of
https://github.com/openziti/zrok.git
synced 2024-12-27 17:19:13 +01:00
preserve the form of the wss url for websocket_endpoint
This commit is contained in:
parent
35f991d42b
commit
e0e3e0286c
@ -27,8 +27,8 @@ func init() {
|
||||
}
|
||||
|
||||
type WebsocketSourceConfig struct {
|
||||
WebsocketEndpoint string
|
||||
ApiEndpoint string
|
||||
WebsocketEndpoint string // wss://127.0.0.1:1280/fabric/v1/ws-api
|
||||
ApiEndpoint string // https://127.0.0.1:1280
|
||||
Username string
|
||||
Password string `cf:"+secret"`
|
||||
}
|
||||
@ -41,7 +41,7 @@ func loadWebsocketSourceConfig(v interface{}, _ *cf.Options) (interface{}, error
|
||||
}
|
||||
return &websocketSource{cfg: cfg}, nil
|
||||
}
|
||||
return nil, errors.New("invalid config struture for 'websocketSource'")
|
||||
return nil, errors.New("invalid config structure for 'websocketSource'")
|
||||
}
|
||||
|
||||
type websocketSource struct {
|
||||
|
Loading…
Reference in New Issue
Block a user