2016-05-03 14:31:56 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
type OnionscanConfig struct {
|
|
|
|
TorProxyAddress string
|
|
|
|
DirectoryDepth int
|
2016-06-05 18:54:01 +00:00
|
|
|
Fingerprint bool
|
2016-05-03 14:31:56 +00:00
|
|
|
}
|
|
|
|
|
2016-06-05 18:54:01 +00:00
|
|
|
func Configure(torProxyAddress string, directoryDepth int, fingerprint bool) *OnionscanConfig {
|
2016-05-03 14:31:56 +00:00
|
|
|
onionScan := new(OnionscanConfig)
|
|
|
|
onionScan.TorProxyAddress = torProxyAddress
|
|
|
|
onionScan.DirectoryDepth = directoryDepth
|
2016-06-05 18:54:01 +00:00
|
|
|
onionScan.Fingerprint = fingerprint
|
2016-05-03 14:31:56 +00:00
|
|
|
return onionScan
|
|
|
|
}
|