Commit 80128908 authored by Stavros Korokithakis's avatar Stavros Korokithakis

Change gateway port (fixes #1)

parent 443b3d9f
......@@ -4,10 +4,10 @@ extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate notify;
extern crate reqwest;
#[macro_use]
extern crate rouille;
extern crate rustc_serialize;
extern crate reqwest;
extern crate simple_logger;
extern crate xdg;
......@@ -140,9 +140,7 @@ fn notify_eternum() {
let eternum_url = format!("https://www.eternum.io/api/site/?key={}", eternum_key);
let client = reqwest::Client::new();
let _ = client.put(eternum_url.as_str())
.json(&payload)
.send();
let _ = client.put(eternum_url.as_str()).json(&payload).send();
info!("Successfully notified Eternum.");
}
......@@ -206,6 +204,16 @@ fn start_ipfs() {
process::exit(1)
});
// Set the gateway port.
Command::new(IPFS_EXECUTABLE)
.env("IPFS_PATH", &*IPFS_PATH)
.args(&["config", "Addresses.Gateway", "/ip4/127.0.0.1/tcp/46283"])
.output()
.unwrap_or_else(|_| {
warn!("Could not initialize IPFS.");
process::exit(1)
});
info!("Starting IPFS daemon...");
// Print the correct message to the console because we'll add some files.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment