mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
@@ -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