This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add InfoOverrides to the Intel data and switch to new source
- Loading branch information
Showing
5 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package hub | ||
|
||
import "github.com/safing/portmaster/intel/geoip" | ||
|
||
// InfoOverride holds data to overide hub info information. | ||
type InfoOverride struct { | ||
// ContinentCode overrides the continent code of the geoip data. | ||
ContinentCode string | ||
// CountryCode overrides the country code of the geoip data. | ||
CountryCode string | ||
// Coordinates overrides the geo coordinates code of the geoip data. | ||
Coordinates *geoip.Coordinates | ||
// ASN overrides the Autonomous System Number of the geoip data. | ||
ASN uint | ||
// ASOrg overrides the Autonomous System Organization of the geoip data. | ||
ASOrg string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters