mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
feat: inbound authorization
This commit is contained in:
@@ -34,6 +34,16 @@ namespace NekoRay {
|
||||
void Delete(const QString &id);
|
||||
};
|
||||
|
||||
class InboundAuthorization : public JsonStore {
|
||||
public:
|
||||
QString username;
|
||||
QString password;
|
||||
|
||||
InboundAuthorization();
|
||||
|
||||
[[nodiscard]] bool NeedAuth() const;
|
||||
};
|
||||
|
||||
class DataStore : public JsonStore {
|
||||
public:
|
||||
// Running
|
||||
@@ -98,6 +108,7 @@ namespace NekoRay {
|
||||
QString inbound_address = "127.0.0.1";
|
||||
int inbound_socks_port = 2080; // or Mixed
|
||||
int inbound_http_port = -2081;
|
||||
InboundAuthorization *inbound_auth = new InboundAuthorization;
|
||||
QString custom_inbound = "{\"inbounds\": []}";
|
||||
|
||||
// DNS
|
||||
|
||||
Reference in New Issue
Block a user