From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id CC7471FF16F for ; Fri, 15 Nov 2024 13:12:24 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E2FDD129BA; Fri, 15 Nov 2024 13:11:49 +0100 (CET) From: Stefan Hanreich To: pve-devel@lists.proxmox.com Date: Fri, 15 Nov 2024 13:11:05 +0100 Message-Id: <20241115121109.170200-15-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241115121109.170200-1-s.hanreich@proxmox.com> References: <20241115121109.170200-1-s.hanreich@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.234 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH pve-manager v4 14/18] firewall: make base_url dynamically configurable in options component X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" VGhpcyBhZGRzIHRoZSBhYmlsaXR5IHRvIGR5bmFtaWNhbGx5IGNvbmZpZ3VyZSBhbmQgY2hhbmdl IHRoZSBiYXNlX3VybApmb3IgdGhl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RlKTsKIAltZS5vbignZGVhY3Rp dmF0ZScsIG1lLnJzdG9yZS5zdG9wVXBkYXRlKTsKICAgICB9LAorICAgIGFwcGx5VXJsOiBmdW5j dGlvbih1cmwpIHsKKwlsZXQgbWUgPSB0aGlzOworCisJRXh0LmFwcGx5KG1lLCB7CisJICAgIHVy bDogIi9hcGkyL2pzb24iICsgdXJsLAorCSAgICBlZGl0b3JDb25maWc6IHsKKwkJdXJsOiAnL2Fw aTIvZXh0anMvJyArIHVybCwKKwkgICAgfSwKKwl9KTsKKyAgICB9LAorICAgIHNldEJhc2VVcmw6 IGZ1bmN0aW9uKHVybCkgeworCWxldCBtZSA9IHRoaXM7CisKKwltZS5iYXNlX3VybCA9IHVybDsK KworCW1lLmFwcGx5VXJsKHVybCk7CisKKwltZS5yc3RvcmUuZ2V0UHJveHkoKS5zZXRDb25maWco J3VybCcsIGAvYXBpMi9leHRqcy8ke3VybH1gKTsKKwltZS5yc3RvcmUucmVsb2FkKCk7CisgICAg fSwKIH0pOwogCiAKLS0gCjIuMzkuNQoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fCnB2ZS1kZXZlbCBtYWlsaW5nIGxpc3QKcHZlLWRldmVsQGxpc3RzLnBy b3htb3guY29tCmh0dHBzOi8vbGlzdHMucHJveG1veC5jb20vY2dpLWJpbi9tYWlsbWFuL2xpc3Rp bmZvL3B2ZS1kZXZlbAo=