Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Fixes bug with zipcode display when using IP. Fixes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter de Bie committed Aug 22, 2021
1 parent 10b6eab commit dfc95f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ pub async fn start<T: 'static + StationProvider + Sync + Send + Clone>(

table.add_row(row![
s.geo().name,
s.geo().used_zipcode.as_ref().unwrap(),
s.geo()
.used_zipcode
.as_ref()
.unwrap_or(&"IP based".to_string()),
s.geo().DMA,
s.uuid(),
s.geo().timezone.as_ref().unwrap_or(&"".to_string()),
Expand Down

0 comments on commit dfc95f7

Please sign in to comment.