summaryrefslogtreecommitdiff
path: root/exports/servers.go
diff options
context:
space:
mode:
Diffstat (limited to 'exports/servers.go')
-rw-r--r--exports/servers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/exports/servers.go b/exports/servers.go
index 57e1be1..36763b4 100644
--- a/exports/servers.go
+++ b/exports/servers.go
@@ -181,7 +181,8 @@ func getCPtrServer(state *client.Client, base *client.ServerBase) *C.server {
server.total_support_contact, server.support_contact = getCPtrListStrings(
base.SupportContact,
)
- server.profiles = getCPtrProfiles(&base.Profiles)
+ profiles := base.GetValidProfiles(state.SupportsWireguard)
+ server.profiles = getCPtrProfiles(&profiles)
// No endtime is given if we get servers when it has been partially initialised
if base.EndTime.IsZero() {
server.expire_time = C.ulonglong(0)