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

world.internet_address implementation #2017

Closed
wants to merge 2 commits into from

Conversation

ike709
Copy link
Collaborator

@ike709 ike709 commented Oct 6, 2024

Closes #191

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Oct 6, 2024
@ike709 ike709 requested a review from wixoaGit October 6, 2024 17:48
@ike709 ike709 closed this Oct 6, 2024
@ike709 ike709 changed the title Mark world.internet_address as implemented world.internet_address implementation Oct 6, 2024
@ike709 ike709 reopened this Oct 6, 2024
@boring-cyborg boring-cyborg bot added the Runtime Involves the OpenDream server/runtime label Oct 6, 2024
@@ -58,7 +58,7 @@ private bool DisplayIPv6 {
}

/// <summary> Tries to return the address of the server, as it appears over the internet. May return null.</summary>
private IPAddress? InternetAddress => null; //TODO: Implement this!
private IPAddress? InternetAddress => _netManager.ServerChannel?.RemoteEndPoint.Address ?? null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this only tells you the local address this server is bound to, not the external IP others will have to use to connect.

I don't know if RT has a way to get this currently.

@ike709
Copy link
Collaborator Author

ike709 commented Oct 6, 2024

rip

@ike709 ike709 closed this Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

world/internet_address not implemented
2 participants