Skip to content

Setting Panel to 1 (3xui) Throws "Undefined array key 1" #38

Description

@timbogdanov

I set the panel to 1 and connect, i get a:

Undefined array key 1
public function __construct()
{
    $serverAddress = 'api://xxxxxx.com/'; # Server Address:Port
    $tunnelServerAddress = null; # Tunnel Server Address:Port
    $username = 'xxxxxx';
    $password = 'xxxxxx';
    $panel = 1; # Panel Type x-ui (0) / 3x-ui (1)

    $this->xui = new xuiConnect($serverAddress, $tunnelServerAddress, $username, $password, $panel);

    $this->xui->setDefaultProtocol('vless');
    $this->xui->setDefaultTransmission('tcp');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions