Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ are made preventing the need for a reboot. All this results in the fastest, safe
<details>
<summary>Supported pfSense Versions</summary>

- pfSense CE 2.7.0 (AMD64)
- pfSense Plus 23.01 (AMD64)
- pfSense Plus 23.05 (AMD64)
- pfSense CE 2.7.0 (amd64)
- pfSense Plus 23.01 (amd64)
- pfSense Plus 23.05 (amd64)

---
_This package is not supported on other architectures such as arm64 and aarch64. However, the package should still
install and operate on these systems. Compatibility on unsupported systems is not guaranteed and is at your own risk._
---

</details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,15 @@ class APIFirewallAliasEntryCreate extends APIModel {
# Get a list of the new addresses and details requested
$this->initial_data["address"] = $this->__value_to_array($this->initial_data["address"]);
$this->initial_data["detail"] = $this->__value_to_array($this->initial_data["detail"]);
$this->validated_data["detail"] = $this->__value_to_array(explode("||", $this->validated_data["detail"]));

# Only expand existing details if they exist
if ($this->validated_data["detail"]) {
$this->validated_data["detail"] = $this->__value_to_array(explode("||", $this->validated_data["detail"]));
}
# Otherwise, default to an empty array
else {
$this->validated_data["detail"] = [];
}

# Ensure the number of addresses is greater than or equal to the number details
if (count($this->initial_data["address"]) >= count($this->initial_data["detail"])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ class APISystemAPIVersionRead extends APIModel {
}

public static function is_update_available() {
# Check if the current version is less than the latest version
$curr_ver_num = intval(str_replace(".", "", self::get_api_version()));
$latest_ver_num = intval(str_replace(".", "", self::get_latest_api_version()));
return $curr_ver_num < $latest_ver_num;
return version_compare(self::get_api_version(), self::get_latest_api_version(), operator: "<");
}

public static function get_github_releases() {
Expand Down