diff options
| author | s <[email protected]> | 2025-11-06 21:06:00 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-06 21:06:00 -0500 |
| commit | adf3c2d3005b4dddcea32486ddd1ed58d7ab75b3 (patch) | |
| tree | 0954bfe03c023dc5ba38e3b0d575579b4c961dad /internal/client | |
| parent | 6b3320ef9c5f21f8961686c4acb24678f1552685 (diff) | |
| download | dborg-adf3c2d3005b4dddcea32486ddd1ed58d7ab75b3.tar.gz dborg-adf3c2d3005b4dddcea32486ddd1ed58d7ab75b3.zip | |
refactor: replace single map flag with separate google and osm options for bssid lookup
Diffstat (limited to 'internal/client')
| -rw-r--r-- | internal/client/osint.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/client/osint.go b/internal/client/osint.go index 123cf32..98f42f3 100644 --- a/internal/client/osint.go +++ b/internal/client/osint.go @@ -1,9 +1,9 @@ package client import ( - "git.db.org.ai/dborg/internal/models" "encoding/json" "fmt" + "git.db.org.ai/dborg/internal/models" "net/url" ) @@ -14,8 +14,11 @@ func (c *Client) LookupBSSID(params *models.BSSIDParams) (*models.BSSIDLookupRes if params.All { queryParams.Add("all", "true") } - if params.Map { - queryParams.Add("map", "true") + if params.Google { + queryParams.Add("google", "true") + } + if params.OSM { + queryParams.Add("osm", "true") } data, err := c.Get(path, queryParams) |
