BRANCH: Torrent with Vue and pure JS.

This commit is contained in:
2017-10-27 20:37:32 -04:00
parent 28e7dd9d5d
commit 7d9b3117f2
10 changed files with 545 additions and 154 deletions

32
settings.go Normal file
View File

@@ -0,0 +1,32 @@
package main
import (
"github.com/anacrolix/torrent"
"github.com/anacrolix/dht"
)
type fullClientSettings struct {
version int
torrent.Config
}
func fullClientSettingsNew()(fullClientSettings){
//Config := fullClientSettings //generate a new struct
var Config fullClientSettings
Config.version = 1.0
Config.DataDir = "downloads" //the full OR relative path of the default download directory for torrents
Config.DHTConfig = dht.ServerConfig{
StartingNodes: dht.GlobalBootstrapAddrs,
}
return Config
}