i2ptunconf

package
v0.33.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 12 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	//Config                    *goini.INI `default:&goini.INI{}`
	*goini.INI
	FilePath                  string   `default:"./"`
	KeyFilePath               string   `default:"./"`
	Labels                    []string `default:"{''}"`
	Client                    bool     `default:"true"`
	ClientDest                string   `default:"idk.i2p"`
	SigType                   string   `default:"SIGNATURE_TYPE=EdDSA_SHA512_Ed25519"`
	Type                      string   `default:"client"`
	SaveDirectory             string   `default:"./"`
	ServeDirectory            string   `default:"./www"`
	SaveFile                  bool     `default:"false"`
	TargetHost                string   `default:"127.0.0.1"`
	TargetPort                string   `default:"7778"`
	SamHost                   string   `default:"127.0.0.1"`
	SamPort                   string   `default:"7656"`
	TunnelHost                string   `default:"127.0.0.1"`
	ControlHost               string   `default:"127.0.0.1"`
	ControlPort               string   `default:"7951"`
	TargetForPort443          string   `default:""`
	TunName                   string   `default:"goi2ptunnel"`
	EncryptLeaseSet           bool     `default:"false"`
	LeaseSetKey               string   `default:""`
	LeaseSetEncType           string   `default:"4,0"`
	LeaseSetPrivateKey        string   `default:""`
	LeaseSetPrivateSigningKey string   `default:""`
	InAllowZeroHop            bool     `default:"false"`
	OutAllowZeroHop           bool     `default:"false"`
	InLength                  int      `default:"3"`
	OutLength                 int      `default:"3"`
	InQuantity                int      `default:"1"`
	OutQuantity               int      `default:"1"`
	InVariance                int      `default:"0"`
	OutVariance               int      `default:"0"`
	InBackupQuantity          int      `default:"1"`
	OutBackupQuantity         int      `default:"1"`
	UseCompression            bool     `default:"true"`
	FastRecieve               bool     `default:"true"`
	ReduceIdle                bool     `default:"false"`
	ReduceIdleTime            int      `default:"36000000"`
	ReduceIdleQuantity        int      `default:"1"`
	CloseIdle                 bool     `default:"false"`
	CloseIdleTime             int      `default:"36000000"`
	AccessListType            string   `default:"none"`
	AccessList                []string `default:"{''}"`
	MessageReliability        string   `default:""`

	UserName string `default:""`
	Password string `default:""`
	UseTLS   bool   `default:"false"`
	Cert     string `default:""`
	Pem      string `default:""`
	HostName string `default:""`
	//TLSConf                   *tls.Config
	LoadedKeys i2pkeys.I2PKeys
	// contains filtered or unexported fields
}

Conf is a tructure containing an ini config, with some functions to help when you use it for in conjunction with command-line flags

func NewI2PBlankTunConf

func NewI2PBlankTunConf() *Conf

NewI2PBlankTunConf returns an empty but intialized tunconf

func NewI2PTunConf

func NewI2PTunConf(iniFile string, label ...string) (*Conf, error)

NewI2PTunConf returns a Conf structure from an ini file, for modification before starting the tunnel

func (*Conf) AddAccessListMember

func (c *Conf) AddAccessListMember(key string)

AddAccessListMember adds a member to either the blocklist or the allowlist

func (*Conf) Base32 added in v0.32.1

func (f *Conf) Base32() string

Base32 returns the base32 address where the local service is being forwarded

func (*Conf) Base32Readable added in v0.32.1

func (f *Conf) Base32Readable() string

Base32Readable will always be an empty string when used here.

func (*Conf) Base64 added in v0.32.1

func (f *Conf) Base64() string

Base64 returns the base64 address where the local service is being forwarded

func (*Conf) Cleanup added in v0.32.1

func (f *Conf) Cleanup()

func (*Conf) Close added in v0.32.1

func (f *Conf) Close() error

Close shuts the whole thing down.

func (*Conf) Get

func (c *Conf) Get(key string, label ...string) (string, bool)

Get passes directly through to goini.Get

func (*Conf) GetAccessListType

func (c *Conf) GetAccessListType(arg, def string, label ...string) string

GetAccessListType takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetBool

func (c *Conf) GetBool(key string, label ...string) (bool, bool)

GetBool passes directly through to goini.GetBool

func (*Conf) GetClientDest

func (c *Conf) GetClientDest(arg, def string, label ...string) string

GetClientDest takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetCloseIdleTime

func (c *Conf) GetCloseIdleTime(arg, def int, label ...string) int

GetCloseIdleTime takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetCloseOnIdle

func (c *Conf) GetCloseOnIdle(arg, def bool, label ...string) bool

GetCloseOnIdle takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetControlHost

func (c *Conf) GetControlHost(arg, def string, label ...string) string

GetHost takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetControlPort

func (c *Conf) GetControlPort(arg, def string, label ...string) string

GetPort takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetDir

func (c *Conf) GetDir(arg, def string, label ...string) string

GetDir takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetEncryptLeaseset

func (c *Conf) GetEncryptLeaseset(arg, def bool, label ...string) bool

GetEncryptLeaseset takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetEndpointHost

func (c *Conf) GetEndpointHost(arg, def string, label ...string) string

GetEndpointHost takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetFastRecieve

func (c *Conf) GetFastRecieve(arg, def bool, label ...string) bool

GetFastRecieve takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetHost

func (c *Conf) GetHost(arg, def string, label ...string) string

GetHost takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetInAllowZeroHop

func (c *Conf) GetInAllowZeroHop(arg, def bool, label ...string) bool

GetInAllowZeroHop takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetInBackups

func (c *Conf) GetInBackups(arg, def int, label ...string) int

GetInBackups takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetInLength

func (c *Conf) GetInLength(arg, def int, label ...string) int

GetInLength takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetInQuantity

func (c *Conf) GetInQuantity(arg, def int, label ...string) int

GetInQuantity takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetInVariance

func (c *Conf) GetInVariance(arg, def int, label ...string) int

GetInVariance takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetInt

func (c *Conf) GetInt(key string, label ...string) (int, bool)

GetInt passes directly through to goini.GetInt

func (*Conf) GetKeyFile

func (c *Conf) GetKeyFile(arg, def string, label ...string) string

GetKeyFile takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetKeys

func (c *Conf) GetKeys(arg, def string, label ...string) string

GetKeys takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetLeaseSetEncType added in v0.33.0

func (c *Conf) GetLeaseSetEncType(arg, def string, label ...string) string

GetLeaseSetEncType takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetLeasesetKey

func (c *Conf) GetLeasesetKey(arg, def string, label ...string) string

GetLeasesetKey takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetLeasesetPrivateKey

func (c *Conf) GetLeasesetPrivateKey(arg, def string, label ...string) string

GetLeasesetPrivateKey takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetLeasesetPrivateSigningKey

func (c *Conf) GetLeasesetPrivateSigningKey(arg, def string, label ...string) string

GetLeasesetPrivateSigningKey takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetMessageReliability

func (c *Conf) GetMessageReliability(arg, def string, label ...string) string

i2cp.messageReliability GetMessageReliability takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetOtherType

func (c *Conf) GetOtherType(typ, def string, label ...string) string

func (*Conf) GetOutAllowZeroHop

func (c *Conf) GetOutAllowZeroHop(arg, def bool, label ...string) bool

GetOutAllowZeroHop takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetOutBackups

func (c *Conf) GetOutBackups(arg, def int, label ...string) int

GetOutBackups takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetOutLength

func (c *Conf) GetOutLength(arg, def int, label ...string) int

GetOutLength takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetOutQuantity

func (c *Conf) GetOutQuantity(arg, def int, label ...string) int

GetOutQuantity takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetOutVariance

func (c *Conf) GetOutVariance(arg, def int, label ...string) int

GetOutVariance takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetPassword

func (c *Conf) GetPassword(arg, def string, label ...string) string

GetPassword takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetPort

func (c *Conf) GetPort(arg, def string, label ...string) string

GetPort takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetPort443

func (c *Conf) GetPort443(arg, def string, label ...string) string

GetPort443 takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetReduceIdleQuantity

func (c *Conf) GetReduceIdleQuantity(arg, def int, label ...string) int

GetReduceIdleQuantity takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetReduceIdleTime

func (c *Conf) GetReduceIdleTime(arg, def int, label ...string) int

GetReduceIdleTime takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetReduceOnIdle

func (c *Conf) GetReduceOnIdle(arg, def bool, label ...string) bool

GetReduceOnIdle takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetSAMHost

func (c *Conf) GetSAMHost(arg, def string, label ...string) string

GetSAMHost takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetSAMPort

func (c *Conf) GetSAMPort(arg, def string, label ...string) string

GetSAMPort takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetSaveFile

func (c *Conf) GetSaveFile(arg, def bool, label ...string) bool

GetSaveFile takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetSigType

func (c *Conf) GetSigType(argt, def string, label ...string) string

GetSigType takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetTLSConfigCertPem added in v0.33.0

func (c *Conf) GetTLSConfigCertPem(arg, def string, label ...string) string

GetTLSConfig

func (*Conf) GetTLSConfigKeyPem added in v0.33.0

func (c *Conf) GetTLSConfigKeyPem(arg, def string, label ...string) string

GetTLSConfig

func (*Conf) GetType

func (f *Conf) GetType() string

func (*Conf) GetTypes added in v0.32.1

func (c *Conf) GetTypes(argc, argu, argh bool, def string, label ...string) string

GetType takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetUseCompression

func (c *Conf) GetUseCompression(arg, def bool, label ...string) bool

GetUseCompression takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetUseTLS added in v0.33.0

func (c *Conf) GetUseTLS(arg, def bool, label ...string) bool

Get

func (*Conf) GetUserName

func (c *Conf) GetUserName(arg, def string, label ...string) string

GetUserName takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) GetWWWDir added in v0.32.1

func (c *Conf) GetWWWDir(arg, def string, label ...string) string

GetDir takes an argument and a default. If the argument differs from the default, the argument is always returned. If the argument and default are the same and the key exists, the key is returned. If the key is absent, the default is returned.

func (*Conf) I2PINILoad

func (c *Conf) I2PINILoad(iniFile string, label ...string) error

I2PINILoad loads variables from an ini file into the Conf data structure.

func (*Conf) ID added in v0.32.1

func (f *Conf) ID() string

func (*Conf) Keys added in v0.32.1

func (f *Conf) Keys() i2pkeys.I2PKeys

func (*Conf) Print

func (f *Conf) Print() string

func (*Conf) PrintSlice added in v0.32.1

func (c *Conf) PrintSlice() []string

PrintSlice returns and prints a formatted list of configured tunnel settings.

func (*Conf) Props added in v0.32.1

func (f *Conf) Props() map[string]string

func (*Conf) Search added in v0.32.1

func (f *Conf) Search(search string) string

func (*Conf) Serve added in v0.32.1

func (f *Conf) Serve() error

Serve starts the SAM connection and and forwards the local host:port to i2p

func (*Conf) SetAccessListType

func (c *Conf) SetAccessListType(label ...string)

SetAccessListType sets the access list type from a config file

func (*Conf) SetAllowZeroHopIn

func (c *Conf) SetAllowZeroHopIn(label ...string)

SetAllowZeroHopIn sets the config to allow zero-hop tunnels

func (*Conf) SetAllowZeroHopOut

func (c *Conf) SetAllowZeroHopOut(label ...string)

SetAllowZeroHopOut sets the config to allow zero-hop tunnels

func (*Conf) SetClientDest

func (c *Conf) SetClientDest(label ...string)

SetClientDest sets the key name from the config file

func (*Conf) SetCloseIdle

func (c *Conf) SetCloseIdle(label ...string)

SetCloseIdle sets the tunnel to automatically close on idle from the config file

func (*Conf) SetCloseIdleTime

func (c *Conf) SetCloseIdleTime(label ...string)

SetCloseIdleTime sets the time to wait before killing a tunnel from a config file

func (*Conf) SetCompressed

func (c *Conf) SetCompressed(label ...string)

SetCompressed sets the compression from the config file

func (*Conf) SetControlHost

func (c *Conf) SetControlHost(label ...string)

SetHost sets the host to forward from the config file

func (*Conf) SetControlPort

func (c *Conf) SetControlPort(label ...string)

SetPort sets the port to forward from the config file

func (*Conf) SetDir

func (c *Conf) SetDir(label ...string)

SetDir sets the key save directory from the config file

func (*Conf) SetEncryptLease

func (c *Conf) SetEncryptLease(label ...string)

SetEncryptLease tells the conf to use encrypted leasesets the from the config file

func (*Conf) SetEndpointHost

func (c *Conf) SetEndpointHost(label ...string)

SetEndpointHost sets the host to forward from the config file

func (*Conf) SetFastRecieve

func (c *Conf) SetFastRecieve(label ...string)

SetFastRecieve sets the compression from the config file

func (*Conf) SetHost

func (c *Conf) SetHost(label ...string)

SetHost sets the host to forward from the config file

func (*Conf) SetInBackups

func (c *Conf) SetInBackups(label ...string)

SetInBackups sets the inbound tunnel backups from config file

func (*Conf) SetInLength

func (c *Conf) SetInLength(label ...string)

SetInLength sets the inbound length from the config file

func (*Conf) SetInQuantity

func (c *Conf) SetInQuantity(label ...string)

SetInQuantity sets the inbound tunnel quantity from config file

func (*Conf) SetInVariance

func (c *Conf) SetInVariance(label ...string)

SetInVariance sets the inbound tunnel variance from config file

func (*Conf) SetKeyFile

func (c *Conf) SetKeyFile(label ...string)

SetKeyFile sets the key save directory from the config file

func (*Conf) SetKeys

func (c *Conf) SetKeys(label ...string)

SetKeys sets the key name from the config file

func (*Conf) SetLabels

func (c *Conf) SetLabels(iniFile string)

SetLabels

func (*Conf) SetLeaseSetEncType added in v0.33.0

func (c *Conf) SetLeaseSetEncType(label ...string)

SetLeaseSetEncType tells the conf to use encrypted leasesets the from the config file

func (*Conf) SetLeasesetKey

func (c *Conf) SetLeasesetKey(label ...string)

SetEncryptLease tells the conf to use encrypted leasesets the from the config file

func (*Conf) SetLeasesetPrivateKey

func (c *Conf) SetLeasesetPrivateKey(label ...string)

SetLeasesetPrivateKey tells the conf to use encrypted leasesets the from the config file

func (*Conf) SetLeasesetPrivateSigningKey

func (c *Conf) SetLeasesetPrivateSigningKey(label ...string)

SetLeasesetPrivateSigningKey tells the conf to use encrypted leasesets the from the config file

func (*Conf) SetMessageReliability

func (c *Conf) SetMessageReliability(label ...string)

SetMessageReliability sets the access list type from a config file

func (*Conf) SetOutBackups

func (c *Conf) SetOutBackups(label ...string)

SetOutBackups sets the outbound tunnel backups from config file

func (*Conf) SetOutLength

func (c *Conf) SetOutLength(label ...string)

SetOutLength sets the outbound lenth from the config file

func (*Conf) SetOutQuantity

func (c *Conf) SetOutQuantity(label ...string)

SetOutQuantity sets the outbound tunnel quantity from config file

func (*Conf) SetOutVariance

func (c *Conf) SetOutVariance(label ...string)

SetOutVariance sets the outbound tunnel variance from config file

func (*Conf) SetPassword

func (c *Conf) SetPassword(label ...string)

SetKeys sets the key name from the config file

func (*Conf) SetPort

func (c *Conf) SetPort(label ...string)

SetPort sets the port to forward from the config file

func (*Conf) SetReduceIdle

func (c *Conf) SetReduceIdle(label ...string)

SetReduceIdle sets the config to reduce tunnels after idle time from config file

func (*Conf) SetReduceIdleQuantity

func (c *Conf) SetReduceIdleQuantity(label ...string)

SetReduceIdleQuantity sets the number of tunnels to reduce to from config file

func (*Conf) SetReduceIdleTime

func (c *Conf) SetReduceIdleTime(label ...string)

SetReduceIdleTime sets the time to wait before reducing tunnels from config file

func (*Conf) SetSAMHost

func (c *Conf) SetSAMHost(label ...string)

SetSAMHost sets the SAM host from the config file

func (*Conf) SetSAMPort

func (c *Conf) SetSAMPort(label ...string)

SetSAMPort sets the SAM port from the config file

func (*Conf) SetSigType

func (c *Conf) SetSigType(label ...string)

SetSigType sets the type of proxy to create from the config file

func (*Conf) SetTLSConfigCertPem added in v0.33.0

func (c *Conf) SetTLSConfigCertPem(label ...string)

SetClientDest sets the key name from the config file

func (*Conf) SetTLSConfigKeyPem added in v0.33.0

func (c *Conf) SetTLSConfigKeyPem(label ...string)

SetClientDest sets the key name from the config file

func (*Conf) SetTargetPort443

func (c *Conf) SetTargetPort443(label ...string)

SetTargetPort443 sets the port to forward from the config file

func (*Conf) SetTunName

func (c *Conf) SetTunName(label ...string)

SetTunName sets the tunnel name from the config file

func (*Conf) SetType

func (c *Conf) SetType(label ...string)

SetType sets the type of proxy to create from the config file

func (*Conf) SetUseTLS added in v0.33.0

func (c *Conf) SetUseTLS(label ...string)

SetAllowZeroHopOut sets the config to allow zero-hop tunnels

func (*Conf) SetUserName

func (c *Conf) SetUserName(label ...string)

SetKeys sets the key name from the config file

func (*Conf) SetWWWDir added in v0.32.1

func (c *Conf) SetWWWDir(label ...string)

SetDir sets the key save directory from the config file

func (*Conf) SignatureType

func (c *Conf) SignatureType() string

func (*Conf) TLSConfig added in v0.33.0

func (c *Conf) TLSConfig() (*tls.Config, error)

func (*Conf) Target added in v0.32.1

func (f *Conf) Target() string

Target returns the host:port of the local service you want to forward to i2p

func (*Conf) Up added in v0.32.1

func (f *Conf) Up() bool

func (*Conf) Write

func (c *Conf) Write() error

type Option added in v0.32.1

type Option func(*Conf) error

Option is a Conf Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL