Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect fail with domain name without port 4222 #530

Closed
BryceCao opened this issue Mar 3, 2022 · 0 comments · Fixed by #531
Closed

connect fail with domain name without port 4222 #530

BryceCao opened this issue Mar 3, 2022 · 0 comments · Fixed by #531

Comments

@BryceCao
Copy link

BryceCao commented Mar 3, 2022

i try connect with my nast server with domain name with url:nats://user-id:user-password@nats.myinspurcloud.com, but get "No server available for connection", then i find i must specify the url:nats://user-id:user-password@nats.myinspurcloud.com:4222.
use nats cli-took(nats-0.0.28-amd64.deb), i can connect this server directly with "-s nats://user-id:user-password@nats.myinspurcloud.com", i think the default port should be added into url parse.

kozlovic added a commit that referenced this issue Mar 5, 2022
With missing port, we should default to 4222.

Resolves #530

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant