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

Not only connecting Telnet Server port, connecting other ports #21

Open
gozeloglu opened this issue Aug 3, 2021 · 0 comments
Open

Not only connecting Telnet Server port, connecting other ports #21

gozeloglu opened this issue Aug 3, 2021 · 0 comments

Comments

@gozeloglu
Copy link

I try to check Telnet server is running or not in my project. I am testing on Docker image. I used DialTo() function with passing address like 127.0.0.1:23. It seems perfect when I check as just below:

_, err := telnet.DialTo("127.0.0.1:23")
if err != nil {
    log.Fatalln("error while connecting Telnet server:", err)
}

fmt.Println("Telnet server is running...")

Program prints out Telnet server is running.... Then, I tried another port, but not Telnet server, Redis's port. I changed the address with 127.0.0.1:6378. And, it still works. I think this is not appropriate way to implement this client. I just want to talk with Telnet server and its ports, not other servers and their ports. Is there any way to solve that problem with this package? If there is not, I'd like to try add this feature with your helps.

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

No branches or pull requests

1 participant