mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 00:36:14 +00:00
1 parent
1591e0cfe7
commit
cf721e9bb3
5 files changed
+39
-3
No files matched your search
+1
-1
@@ -395,7 +395,7 @@ class MyIdMenu: Reactor.Component {
|
||||
if (value) {
|
||||
var values = value.split(/[\s,;\n]+/g);
|
||||
for (var ip in values) {
|
||||
if (!ip.match(/^\d+\.\d+\.\d+\.\d+$/)) {
|
||||
if (!ip.match(/^\d+\.\d+\.\d+\.\d+(\/\d+)?$/)) {
|
||||
return translate("Invalid IP") + ": " + ip;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user