Skip to content

Commit 1827e22

Browse files
committed
Fix bug with binding web UI address for WS protocol
1 parent 6a1e0e9 commit 1827e22

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

cmd/protocol.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,20 @@ func wsCommand(cmd *cobra.Command, args []string) {
9595

9696
// Collect flag data into struct to use with renderers
9797
flagData := server.FlagData{
98-
Addr: Address,
99-
BuildInfo: BuildInfo,
100-
Details: Details,
101-
LogFile: LogFile,
102-
Port: Port,
103-
Protocol: "ws",
104-
Web: Web,
105-
WebPort: WebPort,
98+
Addr: Address,
99+
BuildInfo: BuildInfo,
100+
Details: Details,
101+
LogFile: LogFile,
102+
Port: Port,
103+
Protocol: "ws",
104+
Web: Web,
105+
WebAddress: WebAddress,
106+
WebPort: WebPort,
106107
}
107108

108109
if Web {
109110
web := &renderer.Web{
111+
Address: WebAddress,
110112
Port: WebPort,
111113
StaticFiles: StaticFS,
112114
RequestAddr: Address,

0 commit comments

Comments
 (0)