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

How to connect to any host? #8

Open
geeknik opened this issue Oct 10, 2021 · 1 comment
Open

How to connect to any host? #8

geeknik opened this issue Oct 10, 2021 · 1 comment

Comments

@geeknik
Copy link

geeknik commented Oct 10, 2021

Hello, great experiment you have here. Pardon my question as I am new to programming in Go, but what kind of a modification could I make to where this would accept a hostname from the command line? Thank you.

@viorelyo
Copy link
Owner

Hello, you can make the modification in the main.go file. You can read the hostname from the stdin, but you will also require the HTTP request (maybe also pass as command line argument). Then you can pass the read arguments to the following methods:

client := core.MakeTLSClient(hostname, "TLS 1.2", false)
client.Execute(http_request)

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

2 participants