Skip to content

Commit

Permalink
tts: Erase device address on no session
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansmares committed Oct 17, 2023
1 parent 20e0eec commit 796e301
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed

- Wrong flag name `appplication-server-grpc-address` fixed to `application-server-grpc-address`.
- `--ttnv3.no-session` no longer keeps the end device device address.

### Security

Expand Down
3 changes: 2 additions & 1 deletion pkg/source/tts/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ func updateDeviceTimestamps(dev, src *ttnpb.EndDevice) {
func clearDeviceSession(dev *ttnpb.EndDevice) error {
return dev.SetFields(nil,
"activated_at",
"mac_state",
"ids.dev_addr",
"last_dev_status_received_at",
"last_seen_at",
"mac_state",
"pending_mac_state",
"pending_session",
"session",
Expand Down

0 comments on commit 796e301

Please sign in to comment.