fix(config): settings port descriptions
This commit is contained in:
parent
ecf5f22acf
commit
d560e5ec23
@ -66,42 +66,48 @@ export default class AdminPage extends Page {
|
|||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div className='row inline w100p'>
|
<div className='column w100p'>
|
||||||
<div style={{flex: 1}}>Scanning port</div>
|
<div className='row inline w100p'>
|
||||||
<TextField
|
<div style={{flex: 1}}>Scanning port</div>
|
||||||
style={{width: 65}}
|
<TextField
|
||||||
hintText="Port"
|
style={{width: 65}}
|
||||||
errorText={this.options.spiderPort > 0 ? undefined : "This field is required"}
|
hintText="Port"
|
||||||
value={this.options.spiderPort}
|
errorText={this.options.spiderPort > 0 ? undefined : "This field is required"}
|
||||||
onChange={(e, value) => {
|
value={this.options.spiderPort}
|
||||||
if(!value)
|
onChange={(e, value) => {
|
||||||
value = 0
|
if(!value)
|
||||||
if(value > 65535)
|
value = 0
|
||||||
value = 65535
|
if(value > 65535)
|
||||||
|
value = 65535
|
||||||
|
|
||||||
this.options.spiderPort = parseInt(value)
|
this.options.spiderPort = parseInt(value)
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
<div className='fs0-75' style={{color: 'grey'}}>* For current work TCP and UDP ports must be fully open and forward in case of router usage</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='row inline w100p'>
|
<div className='column w100p'>
|
||||||
<div style={{flex: 1}}>Trackers responce port</div>
|
<div className='row inline w100p'>
|
||||||
<TextField
|
<div style={{flex: 1}}>Trackers responce port</div>
|
||||||
style={{width: 65}}
|
<TextField
|
||||||
hintText="Port"
|
style={{width: 65}}
|
||||||
errorText={this.options.udpTrackersPort > 0 ? undefined : "This field is required"}
|
hintText="Port"
|
||||||
value={this.options.udpTrackersPort}
|
errorText={this.options.udpTrackersPort > 0 ? undefined : "This field is required"}
|
||||||
onChange={(e, value) => {
|
value={this.options.udpTrackersPort}
|
||||||
if(!value)
|
onChange={(e, value) => {
|
||||||
value = 0
|
if(!value)
|
||||||
if(value > 65535)
|
value = 0
|
||||||
value = 65535
|
if(value > 65535)
|
||||||
|
value = 65535
|
||||||
|
|
||||||
this.options.udpTrackersPort = parseInt(value)
|
this.options.udpTrackersPort = parseInt(value)
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
<div className='fs0-75' style={{color: 'grey'}}>* For current work UDP port must be fully open and forward in case of router usage</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='row inline w100p'>
|
<div className='row inline w100p'>
|
||||||
|
Loading…
Reference in New Issue
Block a user