在 Vagrantfile 中作了设置
config.vm.network "private_network", ip: "192.168.33.10"
Rails 在 development.rb 中作了设置
config.action_cable.url = 'ws://192.168.33.10:3000/cable'
但是在日志里还是显示
Started GET "/cable/" [WebSocket] for 192.168.33.1 at 2017-08-28 01:29:08 +0000
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
监听的是 192.168.33.1,而不是 192.168.33.10,请问该如何解决,谢谢!