Skip to content

Sync - #189

Merged
NaysKutzu merged 5 commits into
developfrom
main
Jul 21, 2026
Merged

Sync#189
NaysKutzu merged 5 commits into
developfrom
main

Conversation

@NaysKutzu

Copy link
Copy Markdown
Member

No description provided.

NaysKutzu and others added 5 commits June 9, 2026 16:51
Every new Wings(...) call in this controller omits the 6th
$behindProxy constructor argument, so it always defaults to false
regardless of the node's actual behind_proxy DB value. This makes
Wings API calls always append the raw daemon port to the URL instead
of respecting "Behind Proxy", causing connection failures
(cURL error 7: Failed to connect ... port <daemonListen>) for any
node running behind a reverse proxy — even when correctly configured.

Pass WingsUrlHelper::isBehindProxy($node) through on all 10 call
sites, matching what Wings::fromNode() already does correctly.
Same issue as WingsAdminController - turns out it's not just that one
file, every new Wings(...) call across the codebase (chatbot tools,
server controllers, backup/power/logs controllers, node controllers,
etc) has the same missing 6th argument and defaults behindProxy to
false. Fixed all of them the same way, using WingsUrlHelper::isBehindProxy()
with whatever the node variable is called in each spot ($node,
$nodeInfo, $sourceNode, $destinationNode).

This was blocking basically anything that talks to a proxied node -
creating a server, backups, power actions, chatbot tools, etc all hit
the same wrong port.
A few of the call sites had a trailing inline comment on the timeout
line (e.g. "10 // Short timeout for status checks"), and my earlier
fix appended the comma after the comment instead of before it - so
the comment swallowed the comma and PHP saw two args with nothing
separating them. Fixed by moving the comma before the comment on
those 4 lines.

CompressFilesTool and DecompressArchiveTool had a different issue:
their original calls only had 4 args (no timeout, no behindProxy), so
the patch landed the new arg in the timeout slot instead of adding a
6th one, and somehow ended up duplicated on top of that. Fixed by
putting an explicit 30 back in the timeout slot and keeping just one
WingsUrlHelper::isBehindProxy($node) after it.

Ran php -l on all 31 changed files, all clean now.
…ehind-proxy

fix: behind_proxy setting ignored across ~30 files, not just WingsAdminController
@cursor

cursor Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f815e3c5-dd1e-44d6-ae55-0e145aa71962

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NaysKutzu
NaysKutzu merged commit bdd143a into develop Jul 21, 2026
16 of 17 checks passed
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