set TCP as default protocol in lb list (#3822)

This commit is contained in:
Andrija Panic 2020-01-20 16:27:46 +01:00 committed by GitHub
parent 5ff932eb86
commit a813c248d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3441,21 +3441,21 @@
isEditable: true,
select: function(args) {
var data = [{
id: 'ssl',
name: 'ssl',
description: _l('label.lb.protocol.ssl')
}, {
id: 'tcp',
name: 'tcp',
description: _l('label.lb.protocol.tcp')
}, {
id: 'udp',
name: 'udp',
description: _l('label.lb.protocol.udp')
}, {
id: 'tcp-proxy',
name: 'tcp-proxy',
description: _l('label.lb.protocol.tcp.proxy')
}, {
id: 'udp',
name: 'udp',
description: _l('label.lb.protocol.udp')
id: 'ssl',
name: 'ssl',
description: _l('label.lb.protocol.ssl')
}];
if (typeof args.context != 'undefined') {
var lbProtocols = getLBProtocols(args.context.networks[0]);