Skip to content

Commit

Permalink
Add gpsd.allow_forms config option
Browse files Browse the repository at this point in the history
For enabling use of GPSd with forms.

Ref la5nta#330
  • Loading branch information
martinhpedersen authored and n2ygk committed Apr 8, 2022
1 parent 7684ad9 commit 14b5937
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cfg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,15 @@ type GPSdConfig struct {
// expose your current position to anyone who has access to Pat!!!
EnableHTTP bool `json:"enable_http"`

// Use server time instead of timestamp provided by GPSd (e.g for older GPS
// device with week roll-over issue)
// Allow Winlink forms to use GPSd for aquiring your position.
//
// Caution: Your current GPS position will be automatically injected, without your explicit consent, into forms requesting such information.
AllowForms bool `json:"allow_forms"`

// Use server time instead of timestamp provided by GPSd (e.g for older GPS device with week roll-over issue).
UseServerTime bool `json:"use_server_time"`

// Address and port of GPSd server (e.g. localhost:2947)
// Address and port of GPSd server (e.g. localhost:2947).
Addr string `json:"addr"`
}

Expand Down

0 comments on commit 14b5937

Please sign in to comment.