Skip to content

OpnLaaS/go-tftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go TFTP

A simple TFTP server implementation in Go for the OpnLaaS project.

go get github.com/OpnLaaS/go-tftp

package main

import (
	"fmt"

	tftp "github.com/OpnLaaS/go-tftp"
)

func main() {
	fmt.Println("Starting server")

	quit, err := tftp.Serve(TFTPOptions{
		RootDir: "/var/tftp",
		TFTP_Address: ":69",

		ServeHTTP: true,
		HTTP_RootDir: "/var/www",
		HTTP_Address: ":8069"
	})

	if err != nil {
		fmt.Println(err)
		return
	}

	<-quit
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages