mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
![]() When exporting rules from the GUI, the Created field was exported as timestamp. Importing rules worked fine, because json.Marshall() accepts the timestamp format. However, when the daemon was loading a rule with the Created field as timestamp, since the field was defined as time.Time, it expected a RFC3339 string (https://pkg.go.dev/time#Time.UnmarshalJSON) so it failed to parse the timestamp and the rule was not loaded. Now the field is defined as string, it's always saved as RFC3339, and if we fail to parse these fields we'll use a temporary date instead of failing loading the rule. More info: https://github.com/evilsocket/opensnitch/issues/1140#issuecomment-2140904847 Closes #1140 |
||
---|---|---|
.. | ||
conman | ||
core | ||
data/rules | ||
dns | ||
firewall | ||
log | ||
netfilter | ||
netlink | ||
netstat | ||
procmon | ||
rule | ||
statistics | ||
ui | ||
.gitignore | ||
default-config.json | ||
go.mod | ||
go.sum | ||
Gopkg.toml | ||
main.go | ||
Makefile | ||
opensnitchd-dinit | ||
opensnitchd-openrc | ||
opensnitchd.service | ||
system-fw.json |