import PropTypes from 'prop-types'; import React from 'react'; import { inputTypes, sizes } from 'Helpers/Props'; import FieldSet from 'Components/FieldSet'; import FormGroup from 'Components/Form/FormGroup'; import FormLabel from 'Components/Form/FormLabel'; import FormInputGroup from 'Components/Form/FormInputGroup'; function ProxySettings(props) { const { settings, onInputChange } = props; const { proxyEnabled, proxyType, proxyHostname, proxyPort, proxyUsername, proxyPassword, proxyBypassFilter, proxyBypassLocalAddresses } = settings; const proxyTypeOptions = [ { key: 'http', value: 'HTTP(S)' }, { key: 'socks4', value: 'Socks4' }, { key: 'socks5', value: 'Socks5 (Support TOR)' } ]; return (
Use Proxy { proxyEnabled.value &&
Proxy Type Hostname Port Username Password Ignored Addresses Bypass Proxy for Local Addresses
}
); } ProxySettings.propTypes = { settings: PropTypes.object.isRequired, onInputChange: PropTypes.func.isRequired }; export default ProxySettings;