sed -n '295,315p' /etc/wireguard/wgctl/modules/identity.module.sh result=$(json::get_nested "$id_file" "rule_flags" "$flag" 2>/dev/null) || true if [[ -n "$result" ]]; then echo "$result" return 0 fi # Fall back to policy value local policy_name policy_name=$(identity::policy "$identity_name") policy::get "$policy_name" "$flag" } # identity::set_rule_flag # Sets a rule_flag directly on the identity file. function identity::set_rule_flag() { local identity_name="${1:-}" flag="${2:-}" value="${3:-}" local id_file id_file=$(ctx::identity::path "${identity_name}.identity") if [[ ! -f "$id_file" ]]; then log::error "Identity '${identity_name}' not found"