Force ipv6 setting

This commit is contained in:
Ben Sarmiento
2023-11-25 15:51:11 +01:00
parent ffddceac7c
commit 1b8f961d07
6 changed files with 56 additions and 3 deletions

View File

@@ -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
}