shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy request URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-591268560 curl http://10.97.1.38:9180/apisix/admin/stream_routes/105 -X PUT -d ' { "plugins": { "mqtt-proxy": { "protocol_name": "MQTT", "protocol_level": 4, "upstream": { "ip": "192.168.209.243", "port": 1883 } } } }' 配置以上,日志显示: 2020/02/26 14:33:57 [warn] 2610#2610: *24510069 stream [lua] mqtt-proxy.lua:116: phase_fun(): plugin rewrite phase, conf: {"protocol_level":4,"upstream":{"ip":"192.168.209.243","port":1883},"protocol_name":"MQTT"} while prereading client data, client: 192.168.221.149, server: 0.0.0.0:9100 配置客户端地址: curl http://10.97.1.38:9180/apisix/admin/stream_routes/105 -X PUT -d ' { "remote_addr": "192.168.221.149", "plugins": { "mqtt-proxy": { "protocol_name": "MQTT", "protocol_level": 4, "upstream": { "ip": "192.168.209.243", "port": 1883 } } } }' 日志报错: 2020/02/26 14:36:36 [error] 2608#2608: *24526987 lua entry thread aborted: runtime error: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:31: attempt to index local 'route' (a boolean value) stack traceback: coroutine 0: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua: in function 'match_opts' /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:60: in function 'match' /usr/local/apisix/lua/apisix.lua:521: in function 'stream_preread_phase' preread_by_lua(nginx.conf:51):2: in main chunk while prereading client data, client: 192.168.221.149, server: 0.0.0.0:9100 以上均连接不成功。还有对于mqtt来说,任何一个终端都会连接mqtt服务器,那么"remote_addr"这个参数作用是什么?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
