aboutsummaryrefslogtreecommitdiffstats
path: root/src/configuration/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration/error.rs')
-rw-r--r--src/configuration/error.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configuration/error.rs b/src/configuration/error.rs
index 74e2144..be08c9e 100644
--- a/src/configuration/error.rs
+++ b/src/configuration/error.rs
@@ -6,6 +6,9 @@ pub enum ConfigError {
InvalidPortNumber,
InvalidFwmark,
InvalidKey,
+ InvalidSocketAddr,
+ InvalidKeepaliveInterval,
+ InvalidAllowedIp,
UnsupportedValue,
UnsupportedProtocolVersion,
}
@@ -20,6 +23,9 @@ impl ConfigError {
ConfigError::InvalidHexValue => 4,
ConfigError::InvalidPortNumber => 5,
ConfigError::InvalidFwmark => 6,
+ ConfigError::InvalidSocketAddr => 10,
+ ConfigError::InvalidKeepaliveInterval => 11,
+ ConfigError::InvalidAllowedIp => 12,
ConfigError::UnsupportedValue => 7,
ConfigError::InvalidKey => 8,
ConfigError::UnsupportedProtocolVersion => 9,