Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enable"` BlackListAddresses []string `toml:"blacklist_addresses"` // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) BasicCheck ¶ added in v0.15.0
BasicCheck performs basic checks on the configuration.
func (*Config) LoadDefaultBlackListAddresses ¶ added in v1.1.7
func (conf *Config) LoadDefaultBlackListAddresses()
LoadDefaultBlackListAddresses loads default blacklist addresses from the `black_list.json` file.
type Firewall ¶
type Firewall struct {
// contains filtered or unexported fields
}
Firewall check packets before passing them to sync module.
func NewFirewall ¶
func (*Firewall) IsBlackListAddress ¶ added in v1.1.7
func (*Firewall) OpenGossipBundle ¶
Click to show internal directories.
Click to hide internal directories.