Skip to content

Commit 1b4c7f0

Browse files
committed
fix vhosts
1 parent 501df06 commit 1b4c7f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (api *PrivateAdminAPI) StartRPC(host *string, port *int, cors *string, apis
170170
allowedVHosts := api.node.config.HTTPVirtualHosts
171171
if vhosts != nil {
172172
allowedVHosts = nil
173-
for _, vhost := range strings.Split(*host, ",") {
173+
for _, vhost := range strings.Split(*vhosts, ",") {
174174
allowedVHosts = append(allowedVHosts, strings.TrimSpace(vhost))
175175
}
176176
}

0 commit comments

Comments
 (0)