Skip to content

Commit df78467

Browse files
refactor(WireGuardTunnel): empty addresses with iface assignment
1 parent e05c3b6 commit df78467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/WireGuardTunnel.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class WireGuardTunnel extends Model {
151151
public function _update(): void {
152152
# Remove any existing addresses if this tunnel has an existing interface assignment
153153
if (NetworkInterface::query(if: $this->name->value)->exists()) {
154-
$this->addresses->value = null;
154+
$this->addresses->value = [];
155155
}
156156

157157
parent::_update();

0 commit comments

Comments
 (0)