Skip to content

Commit

Permalink
draft6 udpate: #3
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 11, 2024
1 parent 4ae6fbb commit c6dbc0f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/publisher/src/kinds/Kind30066.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ export class Kind30066 extends Publisher {
if(data.geo.data?.isp)
tags.push(['dns', 'isp', data.geo.data?.isp])
if(data.geo.data?.isMobile)
tags.push(['dns', 'isMobile', data.geo.data?.isMobile? 'true': 'false'])
tags.push(['dns', 'is_mobile', data.geo.data?.isMobile? 'true': 'false'])
if(data.geo.data?.isProxy)
tags.push(['dns', 'isProxy', data.geo.data?.isProxy? 'true': 'false'])
tags.push(['dns', 'is_proxy', data.geo.data?.isProxy? 'true': 'false'])
//
const geoIgnore = ['ip', 'as', 'asname', 'isp', 'isMobile', 'isProxy']
const geoIgnore = ['ip', 'as', 'asname', 'isp', 'is_mobile', 'is_proxy']
for(const prop in data.geo.data){
let val = data.geo.data[prop]
if(geoIgnore.includes(prop)) continue
Expand Down Expand Up @@ -197,8 +197,7 @@ const transformGeoResult = geo => {
"country": "countryName",
"countryCode": "countryCode",
"continent": "contentName",
"continentCode": "continentCode",

"continentCode": "continentCode"
}
return mapper(geo, map)
}
Expand Down

0 comments on commit c6dbc0f

Please sign in to comment.