Skip to content

Commit

Permalink
no need to sort on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Sep 2, 2024
1 parent 497bf5a commit 78ffaa2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/forti_api/dns_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ class DNSFilter {
inline static std::string api_endpoint = "/cmdb/dnsfilter/profile";

public:
static void update(DNSProfile& profile) {
static void update(const DNSProfile& profile) {
if (!contains(profile.name)) throw std::runtime_error("Can't update non-existent DNS Profile");
profile.ftgd_dns.sort_filters();
FortiAPI::put(std::format("{}/{}", api_endpoint, profile.name), profile);
}

Expand Down

0 comments on commit 78ffaa2

Please sign in to comment.