Skip to content

Commit

Permalink
fix: add missing port to location endpoint in desktop client instance…
Browse files Browse the repository at this point in the history
… update (#514)

* add missing port to location endpoint

* update env file

---------

Co-authored-by: Maciej Wójcik <[email protected]>
  • Loading branch information
wojcik91 and Maciej Wójcik authored Jan 23, 2024
1 parent 6a0c222 commit f941977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ DEFGUARD_AUTH_SESSION_LIFETIME=604800
DEFGUARD_ADMIN_GROUPNAME=admin
DEFGUARD_DEFAULT_ADMIN_PASSWORD=pass123

### Proxy configuration ###
# Optional. URL of proxy gRPC server
# DEFGUARD_PROXY_URL: http://localhost:50051

### LDAP configuration ###
DEFGUARD_LDAP_URL=ldap://localhost:389
DEFGUARD_LDAP_SERVICE_PASSWORD=adminpassword
Expand Down
2 changes: 1 addition & 1 deletion src/grpc/enrollment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl EnrollmentServer {
network_id,
network_name: network.name,
assigned_ip: wireguard_network_device.wireguard_ip.to_string(),
endpoint: network.endpoint,
endpoint: format!("{}:{}", network.endpoint, network.port),
pubkey: network.pubkey,
allowed_ips,
dns: network.dns,
Expand Down

0 comments on commit f941977

Please sign in to comment.