~kota/pcf

ea67af1618be7e77acfe38c0b84b7e0b02f9d574 — Dakota Walsh 3 months ago c6c556e
remove config for stdin_name

Having this configurable in the first place was silly since the file is
renamed as soon as it's uploaded. There's literally no point in ever
changing this.
1 files changed, 1 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +1 -2
@@ 18,7 18,6 @@ import (
var addr = "https://paste.cf"
var port = "21"
var pub = "incoming"
var stdin_name = "file"

// create the ftp connection
func login(u *url.URL) *ftp.ServerConn {


@@ 82,7 81,7 @@ func main() {
	files := os.Args[1:]
	if len(files) == 0 {
		// use stdin data
		put(os.Stdin, stdin_name, u)
		put(os.Stdin, "file", u)
		hash(os.Stdin)
	} else {
		// loop through and use all arguments