Skip to content

Bug report: webBasePath will cause the frontend openPort API to return 404 #143

@jueti

Description

@jueti

Describe the bug

const msg = await HttpUtil.postForm('/panel/api/server/openPort', { port: port });

If the webBasePath is set, it should be '/{webBasePath}/panel/api/server/openPort'

How to repeat the problem?

In normal installation, webBasePath is set, nav to inbound section.

After clicking one-click configurationand a pop-up window will show that the auto openPort operation failed, and the server ufw is not actually called

Expected action

Ports should be automatically allowed

Received action

After clicking one-click configuration, the port is not automatically allowed

x-panel Version

25.10.15

Xray-core Version

25.10.15

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions