From 1a41a7450ecfe81fd42ed5f7010389fa54d8d2ee Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 11 Nov 2024 19:25:46 +0800 Subject: [PATCH] perf: vnc proxy port to 15900 --- apps/terminal/migrations/0005_endpoint_vnc_port.py | 2 +- apps/terminal/models/component/endpoint.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/terminal/migrations/0005_endpoint_vnc_port.py b/apps/terminal/migrations/0005_endpoint_vnc_port.py index acf301dbc..931b634ce 100644 --- a/apps/terminal/migrations/0005_endpoint_vnc_port.py +++ b/apps/terminal/migrations/0005_endpoint_vnc_port.py @@ -16,6 +16,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='endpoint', name='vnc_port', - field=common.db.fields.PortField(default=5900, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(65535)], verbose_name='VNC port'), + field=common.db.fields.PortField(default=15900, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(65535)], verbose_name='VNC port'), ), ] diff --git a/apps/terminal/models/component/endpoint.py b/apps/terminal/models/component/endpoint.py index 79df177bf..e0ff92650 100644 --- a/apps/terminal/models/component/endpoint.py +++ b/apps/terminal/models/component/endpoint.py @@ -22,7 +22,7 @@ class Endpoint(JMSBaseModel): postgresql_port = PortField(default=54320, verbose_name=_('PostgreSQL port')) redis_port = PortField(default=63790, verbose_name=_('Redis port')) sqlserver_port = PortField(default=14330, verbose_name=_('SQLServer port')) - vnc_port = PortField(default=5900, verbose_name=_('VNC port')) + vnc_port = PortField(default=15900, verbose_name=_('VNC port')) comment = models.TextField(default='', blank=True, verbose_name=_('Comment')) is_active = models.BooleanField(default=True, verbose_name=_('Active'))