ftpserver

package
v0.0.0-...-ab7327d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfig

func GetTLSConfig(domain string) *tls.Config

func HandleFTPCommands

func HandleFTPCommands(conn *FTPServer)

handleFTPCommands handles the FTP commands received on the connection

Types

type FTPServer

type FTPServer struct {
	net.Conn

	Logger    *log.Logger
	ErrLogger *log.Logger

	UseTLS  bool
	TLSConf *tls.Config

	DataConn     net.Conn
	DataListener net.Listener
	IsPassive    bool
	Username     string
	MainDir      string
	CurrDir      string
	TransferMode string

	DB       *sql.DB
	IsAuthed bool
}

FTPServer represents a connection to the FTP server

Jump to

Keyboard shortcuts

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