Git-private / v2board

🚀A multiple protocol manage panel application interface
MIT License
0 stars 0 forks source link

/app/Http/Controllers/Client/Protocols V2rayN.php (tcp +http #2

Open aiastia opened 2 years ago

aiastia commented 2 years ago
    if ((string)$server['network'] === 'tcp') {
        $tcpSettings = $server['networkSettings'];
        if (isset($tcpSettings['path'])) $config['path'] = $tcpSettings['path'];
        if (isset($tcpSettings['headers']['Host'])) $config['host'] = $tcpSettings['headers']['Host'];
        if (isset($tcpSettings['type'])) $config['type'] = $tcpSettings['type'];
    }
aiastia commented 2 years ago

{ "path": "/", "type": "http", "headers": { "Host": "111" } }