Merge pull request in DNS/adguard-dns from fix/700 to master

* commit '4d217583b099da6a2a2773d0870ab39e36a9b141':
  - client: validate encryption if enabled
This commit is contained in:
Ildar Kamalov 2019-04-11 09:56:49 +03:00
commit 74a0938038
1 changed files with 3 additions and 1 deletions

View File

@ -9,8 +9,10 @@ import Card from '../../ui/Card';
class Encryption extends Component {
componentDidMount() {
if (this.props.encryption.enabled) {
this.props.validateTlsConfig(this.props.encryption);
}
}
handleFormSubmit = (values) => {
this.props.setTlsConfig(values);