Interesting find out:
https://api.chatie.io/v0/hosties/puppet_wxwork_xxx
{"host":"127.0.0.1","ip":"x.y.217.105","port":8788}
It seems that the service discovery thinks that the Puppet Service Service IP is not public accessible.
Related source code:
|
/** |
|
* Huan(202201): test whether the puppet service server host/port |
|
* can be visited by the internet |
|
*/ |
|
const isReachable = await isPortReachable(port, { |
|
host, |
|
timeout: 5 * 1000, |
|
}) |
|
|
|
const data = { |
|
host: isReachable ? host : '127.0.0.1', |
|
ip: host, // <- `ip` is deprecated, use `host` instead. Will be removed after Dec 31, 2022 Huan(202108) |
|
port, |
|
} |
Originally posted by @huan in Chatie/server#96 (comment)
Interesting find out:
{"host":"127.0.0.1","ip":"x.y.217.105","port":8788}It seems that the service discovery thinks that the Puppet Service Service IP is not public accessible.
Related source code:
io/src/server/io-manager.ts
Lines 362 to 375 in 17c715f
Originally posted by @huan in Chatie/server#96 (comment)