Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

use opts.host instead of host#65

Merged
Kikobeats merged 1 commit intoTooTallNate:masterfrom
jumoog:opts_host
Jun 28, 2021
Merged

use opts.host instead of host#65
Kikobeats merged 1 commit intoTooTallNate:masterfrom
jumoog:opts_host

Conversation

@jumoog
Copy link
Copy Markdown
Contributor

@jumoog jumoog commented Jun 28, 2021

fixes #62

@jumoog jumoog closed this Jun 28, 2021
@jumoog jumoog reopened this Jun 28, 2021
@Kikobeats
Copy link
Copy Markdown
Collaborator

In which scenarios servername would be null/undefined?

@jumoog
Copy link
Copy Markdown
Contributor Author

jumoog commented Jun 28, 2021

servername is not null or undefined. But the servername is otherwise an IP address. Which gives the warning: DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066

@Kikobeats
Copy link
Copy Markdown
Collaborator

@jumoog
Copy link
Copy Markdown
Contributor Author

jumoog commented Jun 28, 2021

Okay, I'll keep looking. But with this change my code runs again.

@jumoog
Copy link
Copy Markdown
Contributor Author

jumoog commented Jun 28, 2021

for the test its i did it like TooTallNate/node-proxy-agent@cd18ccf

@jumoog
Copy link
Copy Markdown
Contributor Author

jumoog commented Jun 28, 2021

should split it in to PRs?

@Kikobeats
Copy link
Copy Markdown
Collaborator

Kikobeats commented Jun 28, 2021

yea, split it into two tests, please!

@jumoog
Copy link
Copy Markdown
Contributor Author

jumoog commented Jun 28, 2021

Okay now I know what happens. Without opts.host the IP address is used and then when I try to connect HTTPS an openssl error occurs and the program crashes. Because of the crash also appears the warning DEP0123

@Kikobeats Kikobeats mentioned this pull request Jun 28, 2021
@Kikobeats Kikobeats merged commit 0931991 into TooTallNate:master Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upgrade to 5.0.1 breaks old code

2 participants