Skip to content

Commit 54afe0e

Browse files
author
Florian Schaal
committed
allow ipv6 for openvz-container
1 parent 25907af commit 54afe0e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ ALTER TABLE `web_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAU
3838
ALTER TABLE `sys_datalog` ADD INDEX `dbtable` (`dbtable` (25), `dbidx` (25)), ADD INDEX (`action`);
3939
ALTER TABLE `mail_user` ADD `greylisting` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `postfix`;
4040
ALTER TABLE `mail_forwarding` ADD `greylisting` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `active`;
41+
42+
ALTER TABLE `openvz_ip` CHANGE `ip_address` `ip_address` VARCHAR(39) DEFAULT NULL;

interface/web/vm/form/openvz_ip.tform.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@
7777
'ip_address' => array (
7878
'datatype' => 'VARCHAR',
7979
'formtype' => 'TEXT',
80-
'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
81-
'errmsg'=> 'ip_error_wrong'),
82-
1 => array ( 'type' => 'UNIQUE',
83-
'errmsg'=> 'ip_error_unique'),
80+
'validators' => array (
81+
0 => array ( 'type' => 'ISIP', 'errmsg'=> 'ip_error_wrong'),
82+
1 => array ( 'type' => 'UNIQUE', 'errmsg'=> 'ip_error_unique'),
8483
),
8584
'default' => '',
8685
'value' => '',

0 commit comments

Comments
 (0)