link]}
- values={{ link: `http://${interfaceIp}` }}
+ values={{ link: interfaceAddress }}
>
install_settings_interface_link
@@ -128,7 +132,7 @@ let Settings = (props) => {
ip]}
- values={{ ip: dnsIp }}
+ values={{ ip: dnsAddress }}
>
install_settings_dns_desc
@@ -143,24 +147,38 @@ Settings.propTypes = {
handleSubmit: PropTypes.func.isRequired,
interfaceIp: PropTypes.string.isRequired,
dnsIp: PropTypes.string.isRequired,
+ interfacePort: PropTypes.oneOfType([
+ PropTypes.string,
+ PropTypes.number,
+ ]),
+ dnsPort: PropTypes.oneOfType([
+ PropTypes.string,
+ PropTypes.number,
+ ]),
invalid: PropTypes.bool.isRequired,
initialValues: PropTypes.object,
};
Settings.defaultProps = {
interfaceIp: '192.168.0.1',
+ interfacePort: 3000,
dnsIp: '192.168.0.1',
+ dnsPort: 53,
};
const selector = formValueSelector('install');
Settings = connect((state) => {
const interfaceIp = selector(state, 'web.ip');
+ const interfacePort = selector(state, 'web.port');
const dnsIp = selector(state, 'dns.ip');
+ const dnsPort = selector(state, 'dns.port');
return {
interfaceIp,
+ interfacePort,
dnsIp,
+ dnsPort,
};
})(Settings);