Versions in this module Expand all Collapse all v1 v1.0.5 Aug 21, 2023 Changes in this version + const CGIMode + const DownloadMode + const RedirectMode + const UploadMode + type Conf struct + AllowBots bool + ArchiveMethod string + CertFile string + Cgi bool + CgiStderr string + CgiStrict bool + CustomCSRFToken string + Dir string + EnvVars []string + ExitOnFail bool + FileExt string + FileMime string + FileName string + Host string + KeyFile string + Mdns bool + NoCSRFToken bool + NoDownload bool + NoError bool + NoInfo bool + NoUnixNorm bool + Password string + PasswordFile string + PasswordHidden bool + Port string + RawHeaders []string + Redirect bool + RedirectStatus int + ReplaceHeaders bool + Shell string + ShellCommand bool + Sstls bool + Timeout time.Duration + Upload bool + UploadFile bool + UploadHTML string + UploadInput bool + Username string + WaitForEOF bool + func NewConf(cmd *cobra.Command) *Conf + func (c *Conf) CredFileLoc() (string, bool) + func (c *Conf) Mode() uint8 + func (c *Conf) Parse() error + func (c *Conf) RandCredentials() (user, password bool) + func (c *Conf) SSTLSLoc() (string, bool) + func (c *Conf) SetFlags(cmd *cobra.Command) + func (c *Conf) SetupCertAndKey(fs *pflag.FlagSet) (location string, err error) + func (c *Conf) SetupCredentials() error + func (c *Conf) SetupServer(srvr *server.Server, args []string, ips []string) error + func (c *Conf) StdinBufferLocation() string