Skip to content

Commit 33b3fc4

Browse files
authored
Merge pull request #779 from nextcloud/fix/frp-address-validation
fix(HaRP): use correct path for FRP address validation
2 parents d6be454 + 6cf1e83 commit 33b3fc4

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)