tiandi0716 commented on issue #2382:
URL: https://github.com/apache/dubbo-go/issues/2382#issuecomment-1678540603

   Protocol  Init  method
    
   https://github.com/apache/dubbo-go/blob/main/config/protocol_config.go
   
![image](https://github.com/apache/dubbo-go/assets/41275334/81f0d4ec-33e1-4f2b-a69a-0f101f36e40a)
   
   
   https://github.com/creasty/defaults/blob/master/defaults.go
   
![image](https://github.com/apache/dubbo-go/assets/41275334/06365f35-cee2-4e56-9633-9a2134af47de)
   
   the code you are parse  "default" tag,  Port  default "20000"
   https://github.com/apache/dubbo-go/blob/main/config/protocol_config.go
   
![image](https://github.com/apache/dubbo-go/assets/41275334/1b50be9e-a3d9-429f-9b14-0b36648e225f)
   
   **my   dubbogo.yaml  config**
   
   ```
   dubbo:
     application: 
       name: go.micro.api.gateway
     registries:
       nacos:
         protocol: nacos
         address: 192.168.1.236:8848
     protocols:
       triple:
         name: tri
         port:  -1
   ```


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

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to