diff --git a/web/views/index/add.html b/web/views/index/add.html index ed2ee098..43b65a40 100644 --- a/web/views/index/add.html +++ b/web/views/index/add.html @@ -134,7 +134,7 @@

} $(function () { - $("#type").val('{{.type}}'); + $("#type").val(('{{.type}}' == '') ? 'tcp' : '{{.type}}'); resetForm() $("#type").on("change", function () { resetForm()