Add support for using TOML as configuration file format

Add basic support for trojan-grpc nodes.
Refactor codes.
This commit is contained in:
Tindy X committed 2021-09-20 17:02:13 +08:00
1 parent bc0a8dc925
commit 9797197c85
35 files changed
+2345 -531

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ public:
return *this;
}
inline bool operator==(const tribool& rhs){ return _M_VALUE == rhs._M_VALUE; }
operator bool() const { return _M_VALUE == 3; }
bool is_undef() const { return _M_VALUE <= 1; }