Skip to content

Commit 2e6af27

Browse files
authored
Merge pull request #304 from pollen-robotics/303-accept-new-robots-names
Update IPUtils script.
2 parents 30b4ac1 + c83273d commit 2e6af27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/Miscellaneous/IPUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static bool IsIPValid(string ipAddress)
1616
if (ipAddress == "localhost" || ipAddress == Robot.VIRTUAL_ROBOT_IP)
1717
return true;
1818

19-
else if ((Regex.IsMatch(ipAddress, @"^reachy2-\w+\.local$")))
19+
else if (Regex.IsMatch(ipAddress, @"^reachy2-\w+\.local$") || Regex.IsMatch(ipAddress, @"^r2-\w+\.local$"))
2020
return true;
2121

2222
else

0 commit comments

Comments
 (0)