Skip to content

Conversation

@oleksandr-nc
Copy link
Contributor

The validation that prevents protocol prefixes (http://, https://, etc.) in FRP addresses was checking the wrong path in $params.

It checked $params['harp']['frp_address'] which doesn't exist, instead of $params['deploy_config']['harp']['frp_address'].

This caused the validation to always check an empty string, allowing invalid FRP addresses like "http://localhost:8782" to be saved. When deploying ExApps, this would cause FRP connection failures because the address was incorrectly parsed.

With this fix such command correctly fails:

php occ app_api:daemon:register test_harp_bug "Test HaRP Bug" "docker-install" "http" "localhost:8780" "http://localhost" --net host --harp --harp_frp_address "http://localhost:8782" --harp_shared_key "some_secure_password_123"

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants