Add cloudflare warp options
This commit is contained in:
@@ -78,3 +78,13 @@ enum MuxProtocol {
|
||||
smux,
|
||||
yamux;
|
||||
}
|
||||
|
||||
enum WarpDetourMode {
|
||||
outbound,
|
||||
inbound;
|
||||
|
||||
String present(TranslationsEn t) => switch (this) {
|
||||
outbound => t.settings.config.warpDetourModes.outbound,
|
||||
inbound => t.settings.config.warpDetourModes.inbound,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,6 +52,13 @@ class SingboxConfigOption with _$SingboxConfigOption {
|
||||
required bool muxPadding,
|
||||
required int muxMaxStreams,
|
||||
required MuxProtocol muxProtocol,
|
||||
required bool enableWarp,
|
||||
required WarpDetourMode warpDetourMode,
|
||||
required String warpLicenseKey,
|
||||
required String warpCleanIp,
|
||||
required int warpPort,
|
||||
@RangeWithOptionalCeilJsonConverter()
|
||||
required RangeWithOptionalCeil warpNoise,
|
||||
required String geoipPath,
|
||||
required String geositePath,
|
||||
required List<SingboxRule> rules,
|
||||
|
||||
Reference in New Issue
Block a user