Skip to content

Commit

Permalink
Slight fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeydi committed Nov 10, 2021
1 parent d6e6ec6 commit 151f5cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fog.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ func GetFogPubkeyRust(recipient *account.PublicAddress) (*FogFullyValidatedPubke
"fog://service.fog.mob.staging.namda.net": "a4764346f91979b4906d4ce26102228efe3aba39216dec1e7d22e6b06f919f11",
}

uri, err := url.Parse(recipient.FogReportUrl)
if err != nil {
return nil, err
}

host := recipient.FogReportUrl
if uri.Port() != "" {
host = strings.ReplaceAll(host, ":"+uri.Port(), "")
Expand Down

0 comments on commit 151f5cd

Please sign in to comment.