[Update] Session protocol 添加 telnet 选项

pull/3253/head
BaiJiangJie 2019-09-23 15:31:09 +08:00
parent 6f4d7dd6c6
commit b5f94d84f7
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1.7 on 2019-09-23 07:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('terminal', '0014_auto_20181226_1441'),
]
operations = [
migrations.AlterField(
model_name='session',
name='protocol',
field=models.CharField(choices=[('ssh', 'ssh'), ('rdp', 'rdp'), ('vnc', 'vnc'), ('telnet', 'telnet')], default='ssh', max_length=8),
),
]

View File

@ -147,7 +147,8 @@ class Session(OrgModelMixin):
PROTOCOL_CHOICES = (
('ssh', 'ssh'),
('rdp', 'rdp'),
('vnc', 'vnc')
('vnc', 'vnc'),
('telnet', 'telnet'),
)
id = models.UUIDField(default=uuid.uuid4, primary_key=True)