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

Add: check if a server-port actually is an OpenTTD server #13

Merged
merged 1 commit into from Jul 10, 2021

Conversation

@TrueBrain
Copy link
Member

@TrueBrain TrueBrain commented Jul 10, 2021

Before this PR, it just checked if the port is open. Now we
exchange a single packet to validate the other side understands it
and returns with something sane. This gives pretty good odds it
is a valid OpenTTD server on the other side of the line.

Before this PR, it just checked if the port is open. Now we
exchange a single packet to validate the other side understands it
and returns with something sane. This gives pretty good odds it
is a valid OpenTTD server on the other side of the line.
@TrueBrain TrueBrain merged commit 8cdf3ee into OpenTTD:main Jul 10, 2021
5 checks passed
Loading
@TrueBrain TrueBrain deleted the check-server branch Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant