diff options
Diffstat (limited to 'src/server/mod.rs')
| -rw-r--r-- | src/server/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/mod.rs b/src/server/mod.rs index 9909fd2..a38e194 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -24,7 +24,7 @@ pub struct ServerConfig { impl ServerConfig { pub fn new() -> ServerConfig { ServerConfig { - default_host: Url::parse("gemini://localhost").unwrap(), + default_host: Url::parse("gemini://localhost/").unwrap(), gem_root: PathBuf::from(""), addrs: Vec::new(), user: unistd::getuid(), @@ -35,7 +35,7 @@ impl ServerConfig { } pub fn set_default_host(&mut self, default_host: String) { - let mut url = Url::parse("gemini://default").unwrap(); + let mut url = Url::parse("gemini://default/").unwrap(); match url.set_host(Some(default_host.as_str())) { Ok(_) => {} |
