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

Port forwarding for server #69

Merged
merged 2 commits into from
Aug 5, 2021
Merged

Conversation

ilyapavkin
Copy link
Contributor

In my case I am using wireguard behind reverse proxy. This PR contains implementation of setting.EndpointAddress parsing, so that client config contains desired hostname and port, if EndpointAddress string contains ":int" suffix. Default behavior maintained otherwise.

Usage:
Fill Endpoint Address field in Global Settings with hostname:port format e.g. example.com:443
ListenPort setting in server configuration will remain as set in Wireguard Server page, but example.com:443 will be used as Endpoint of server's peer in every client config.

@ngoduykhanh
Copy link
Owner

LGTM. Thanks Ilya, Merging your PR...

@ngoduykhanh ngoduykhanh merged commit de0c9fd into ngoduykhanh:master Aug 5, 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
Development

Successfully merging this pull request may close these issues.

2 participants