-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
nrepl wrongly prefers ip4 on dual stack systems #302
Comments
I recall we did this for a reason back in the day (something to do with dual stack systems), but I no longer remember the reason. 😄 I'll have to dig through the old conversations about the default host.
From what I get the issue for you is what we're printing, right? |
yes however, make that low priority - currently it works again and since there is so much involved (jvm, nodejs, linux, linux-settings, actually having a ip-dualstack) I'm not sure why and I'd have to take a look. |
Would it make sense to print whatever The default was changed from |
@cichli I think that's a good suggestion. PR welcome! |
Starting nrepl with default params (no
-b
) launches it on127.0.0.1
. It happily reports that it started/bound tolocalhost:99999
. Other software (calva) connect via printed message and fails because::1:99999
(ipv6) is not listened on.(this started as BetterThanTomorrow/calva#2310)
(BetterThanTomorrow/calva#2310 (comment) is why I think this started occurring after Aug 2023)
since nrepl binds to a port, it should print the address instead of the host
Expected behavior
banner text to print connectable address
nREPL server started on port 36009 on host localhost - nrepl://127.0.0.1:36009
or
nREPL server started on port 36009 on host localhost - nrepl://::1:36009
Actual behavior
banner text to port not listed on
nREPL server started on port 36009 on host localhost - nrepl://localhost:36009
Steps to reproduce the problem
-b
)127.0.0.1
)nrepl://localhost:36009
::1
nREPL connection failed: Error: connect ECONNREFUSED ::1:36009
Environment & Version information
Clojure version
1.11.1
Java version
Operating system
arch linux
quickfix:
The text was updated successfully, but these errors were encountered: