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

Support Hostname resolving #3

Closed
nagy opened this issue Feb 7, 2021 · 2 comments
Closed

Support Hostname resolving #3

nagy opened this issue Feb 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@nagy
Copy link

nagy commented Feb 7, 2021

Right now, I get the following when trying to connect to a different host:

$ MPD_HOST=mpdserver MPD_PORT=6600 mmtc
invalid IP address syntax

Would it be possible to resolve the hostname? I think you can do this via the ToSocketAddrs trait instead of using SocketAddr directly.

https://doc.rust-lang.org/std/net/trait.ToSocketAddrs.html

@figsoda figsoda added the enhancement New feature or request label Feb 7, 2021
@figsoda
Copy link
Owner

figsoda commented Feb 7, 2021

Closed by this commit

@figsoda figsoda closed this as completed Feb 7, 2021
@nagy
Copy link
Author

nagy commented Feb 7, 2021

thanks, it works great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants