Add support for showing anycast addresses in the UI
This commit is contained in:
@@ -11,8 +11,8 @@ mnt="$( cd ../.. && pwd )"
|
||||
docker run \
|
||||
-ti \
|
||||
--rm \
|
||||
-v $mnt:/portmaster-ui \
|
||||
-w /portmaster-ui/modules/portmaster \
|
||||
-v $mnt:/portmaster \
|
||||
-w /portmaster/desktop/angular \
|
||||
-p 8081:8080 \
|
||||
node:latest \
|
||||
npm start -- --host 0.0.0.0 --port 8080
|
||||
|
||||
@@ -195,6 +195,8 @@ export class MapRendererComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
data.forEach((country: any) => {
|
||||
this.countryNames[country.properties.iso_a2] = country.properties.name
|
||||
})
|
||||
// Add special country values.
|
||||
this.countryNames["__"] = "Anycast"
|
||||
|
||||
this.worldGroup.selectAll()
|
||||
.data<GeoPermissibleObjects>(data)
|
||||
|
||||
@@ -11,6 +11,9 @@ export class ConnectionLocationPipe implements PipeTransform {
|
||||
return '';
|
||||
}
|
||||
if (!!conn.country) {
|
||||
if (conn.country === "__") {
|
||||
return "Anycast"
|
||||
}
|
||||
return conn.country;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user