Skip to content

Commit 60d25f1

Browse files
oleksandr-ncbackportbot[bot]
authored andcommitted
fix(HaRP): use correct path for FRP address validation
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
1 parent ef84ffc commit 60d25f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Service/DaemonConfigService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function registerDaemonConfig(array $params): ?DaemonConfig {
5252
}
5353
$bad_patterns = ['http', 'https', 'tcp', 'udp', 'ssh'];
5454
$docker_host = (string)$params['host'];
55-
$frp_host = (string)($params['harp']['frp_address'] ?? '');
55+
$frp_host = (string)($params['deploy_config']['harp']['frp_address'] ?? '');
5656
foreach ($bad_patterns as $bad_pattern) {
5757
if (str_starts_with($docker_host, $bad_pattern . '://')) {
5858
$this->logger->error('Failed to register daemon configuration. `host` must not include a protocol.');

0 commit comments

Comments
 (0)