Adding a lot of js for the add torrent and add magnet link gui, started the torrent client backend.

This commit is contained in:
2017-09-16 12:52:05 -04:00
parent 5489b3d59b
commit 28e7dd9d5d
4 changed files with 200 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import (
"log"
"net/http"
"os"
"strings"
"time"
)
@@ -57,6 +58,8 @@ func main() {
fmt.Println(err)
return
}
} else if strings.HasPrefix(string(msg), "magnet:") {
fmt.Println(string(msg))
} else {
conn.Close()
fmt.Println(string(msg))