We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7341440 + fb31055 commit 236a85cCopy full SHA for 236a85c
wireguard/src/main/java/org/thebytearray/wireguard/model/TunnelConfig.kt
@@ -25,7 +25,7 @@ data class TunnelConfig(
25
26
companion object {
27
private val IP_PATTERN = Pattern.compile(
28
- "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"
+ "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(/([0-9]|[1-2][0-9]|3[0-2]))?$"
29
)
30
private val WG_KEY_PATTERN = Pattern.compile("^[A-Za-z0-9+/]{43}=$")
31
private val ENDPOINT_PATTERN = Pattern.compile(
0 commit comments