From bad86e202bc5d953047cc59b2e856ddf581d89e9 Mon Sep 17 00:00:00 2001 From: Igor Klimer Date: Mon, 30 Nov 2015 02:59:18 +0100 Subject: [PATCH] Domains: proper handling of protocol in SRV record. The name attribute for the field was missing as well as a default value. --- .../upgrades/domain-management/dns/srv-record.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/my-sites/upgrades/domain-management/dns/srv-record.jsx b/client/my-sites/upgrades/domain-management/dns/srv-record.jsx index f320c31c87d5e..5598e8cc312c5 100644 --- a/client/my-sites/upgrades/domain-management/dns/srv-record.jsx +++ b/client/my-sites/upgrades/domain-management/dns/srv-record.jsx @@ -21,7 +21,8 @@ const SrvRecord = React.createClass( { aux: 10, weight: 10, target: '', - port: '' + port: '', + protocol: 'tcp' } }, @@ -43,7 +44,7 @@ const SrvRecord = React.createClass( { return (
- { this.translate( 'Value', { context: 'Dns Record' } ) } + { this.translate( 'Name', { context: 'Dns Record' } ) } { ! isValid( 'name' ) ? : null } { this.translate( 'Protocol', { context: 'Dns Record' } ) } - + { options }