Force ipv6 setting
This commit is contained in:
@@ -19,6 +19,7 @@ type ConfigInterface interface {
|
||||
EnableRetainRDTorrentName() bool
|
||||
GetRandomPreferredHost() string
|
||||
ShouldServeFromRclone() bool
|
||||
ShouldForceIPv6() bool
|
||||
}
|
||||
|
||||
type ZurgConfig struct {
|
||||
@@ -36,6 +37,7 @@ type ZurgConfig struct {
|
||||
RetainRDTorrentName bool `yaml:"retain_rd_torrent_name"`
|
||||
PreferredHosts []string `yaml:"preferred_hosts"`
|
||||
ServeFromRclone bool `yaml:"serve_from_rclone"`
|
||||
ForceIPv6 bool `yaml:"force_ipv6"`
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetToken() string {
|
||||
@@ -111,3 +113,7 @@ func (z *ZurgConfig) GetRandomPreferredHost() string {
|
||||
func (z *ZurgConfig) ShouldServeFromRclone() bool {
|
||||
return z.ServeFromRclone
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) ShouldForceIPv6() bool {
|
||||
return z.ForceIPv6
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user