Skip to content

Commit

Permalink
ipn/proton: fix unmarshal for prebuilt servers
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Dec 15, 2024
1 parent f44d2a2 commit 9876623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intra/ipn/warp/proton.go
Original file line number Diff line number Diff line change
Expand Up @@ -1189,12 +1189,12 @@ func protonServersByCountry(logicals []ProtonLogicals) map[string][]ProtonServer
}

func protonServersPrebuilt() []ProtonLogicals {
var prebuilts []ProtonLogicals
var prebuilts ProtonServerResponse
err := json.Unmarshal(prebuiltProtonServersJson, &prebuilts)
if err != nil {
log.E("proton: servers: %d unmarshal: %v", len(prebuiltProtonServersJson), err)
}
return prebuilts
return prebuilts.R
}

// go.dev/play/p/9kapzPiG72r
Expand Down

0 comments on commit 9876623

Please sign in to comment.