ALT Linux Bugzilla
– Attachment 8885 Details for
Bug 38762
Неверно сохраняется маска подсети из веб-интерфейса PVE
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
__unwrap_netmask4(): не конвертировать маску в формате A.B.C.D
file_38762.txt (text/plain), 431 bytes, created by
Andrew Vasilyev
on 2020-07-27 18:44:43 MSK
(
hide
)
Description:
__unwrap_netmask4(): не конвертировать маску в формате A.B.C.D
Filename:
MIME Type:
Creator:
Andrew Vasilyev
Created:
2020-07-27 18:44:43 MSK
Size:
431 bytes
patch
obsolete
>diff --git src/PVE/INotifyEtcnetOverride.pm src/PVE/INotifyEtcnetOverride.pm >index 2a61264..befbe50 100644 >--- src/PVE/INotifyEtcnetOverride.pm >+++ src/PVE/INotifyEtcnetOverride.pm >@@ -686,6 +686,7 @@ my %nm4prefix = qw/ > sub __unwrap_netmask4 { > my $in=shift; > my @out; >+ return $in if($in =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/); > while (@out<4) { > if ($in>8) { > push @out, '255';
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38762
:
8885
|
8907
|
8908