-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
53 lines (48 loc) · 1.56 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
defmodule MlDHT.Mixfile do
use Mix.Project
def project do
[app: :mldht,
version: "0.0.3",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()]
end
def application do
[mod: {MlDHT, []},
env: [
port: 6881,
ipv4: true,
ipv6: true,
bootstrap_nodes: [
{"32F54E697351FF4AEC29CDBAABF2FBE3467CC267", "router.bittorrent.com", 6881},
{"EBFF36697351FF4AEC29CDBAABF2FBE3467CC267", "router.utorrent.com", 6881},
{"9F08E1074F1679137561BAFE2CF62A73A8AFADC7", "dht.transmissionbt.com", 6881},
],
k_bucket_size: 8,
],
applications: [:logger]]
end
defp deps do
[{:bencodex, "~> 1.0.0"},
{:krpc_protocol, "~> 0.0.5"},
{:ex_doc, "~> 0.19", only: :dev},
{:pretty_hex, "~> 0.0.1", only: :dev},
{:dialyxir, "~> 0.5.1", only: [:dev, :test]}
]
end
defp description do
"""
Distributed Hash Table (DHT) is a storage and lookup system based on a peer-to-peer (P2P) system. The file sharing protocol BitTorrent makes use of a DHT to find new peers. MLDHT, in particular, is an elixir package that provides a mainline DHT implementation according to BEP 05.
"""
end
defp package do
[name: :mldht,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Florian Adamsky"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/cit/MLDHT"}]
end
end