huzhewei opened a new issue #2289:
URL: https://github.com/apache/apisix/issues/2289


   ### Issue description
   I want to register tcp protocol services and proxy the port.
   So I realized my discovery registry, and wanted to register a route to proxy 
the tcp service.
   
   discovery.nodes:
   {
     "tcp-service":{
        "host":"10.0.15.249",
        "port":"8000",
        "weight":10
     }  
   }
   
   Then I request stream_proxy api to register:
   curl http://127.0.0.1:9080/apisix/admin/stream_routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "server_addr": "127.0.0.1",
       "server_port": 2000,
       "upstream": {
           "service_name": "tcp-service",
           "type": "roundrobin"
       }
   }'
   
   But I can't see the address mapping by using netstat -ant | grep 2000
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * OS:
   


----------------------------------------------------------------
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]


Reply via email to