(on company time) 2023-08-29 08:53:37 -05:00
commit 43fe373847
11 changed files with 28 additions and 4 deletions

4
Cargo.lock generated
View File

@ -13,7 +13,7 @@ dependencies = [
[[package]] [[package]]
name = "always_equal" name = "always_equal"
version = "1.0.2" version = "1.0.3"
[[package]] [[package]]
name = "android_system_properties" name = "android_system_properties"
@ -1330,7 +1330,7 @@ dependencies = [
[[package]] [[package]]
name = "ptth_multi_call_server" name = "ptth_multi_call_server"
version = "0.1.0" version = "1.1.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"ctrlc", "ctrlc",

View File

@ -7,6 +7,7 @@ edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
description = "An extroverted HTTP server that can run behind firewalls" description = "An extroverted HTTP server that can run behind firewalls"
repository = "https://six-five-six-four.com/git/reactor/ptth"
readme = "README.md" readme = "README.md"
keywords = ["http", "tunnel", "firewall"] keywords = ["http", "tunnel", "firewall"]
categories = ["command-line-utilities", "web-programming::http-server"] categories = ["command-line-utilities", "web-programming::http-server"]

View File

@ -1,10 +1,11 @@
[package] [package]
name = "always_equal" name = "always_equal"
version = "1.0.2" version = "1.0.3"
authors = ["Trish"] authors = ["Trish"]
edition = "2018" edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
description = "A wrapper for types that can't implement Eq" description = "A wrapper for types that can't implement Eq"
repository = "https://six-five-six-four.com/git/reactor/ptth"
[dependencies] [dependencies]

View File

@ -7,6 +7,7 @@ edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
description = "Common code for the PTTH relay and server" description = "Common code for the PTTH relay and server"
repository = "https://six-five-six-four.com/git/reactor/ptth"
[dependencies] [dependencies]

View File

@ -1,6 +1,10 @@
[package] [package]
name = "ptth_multi_call_server" name = "ptth_multi_call_server"
version = "0.1.0"
# Keep this synced with the Debian package name
# dpkg doesn't let us do side-by-side versioning, shrug
version = "1.1.1"
authors = ["Trish"] authors = ["Trish"]
edition = "2018" edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
@ -31,3 +35,9 @@ tracing = "0.1.25"
version = "0.11.1" version = "0.11.1"
default-features = false default-features = false
features = ["stream", "rustls-tls", "hyper-rustls"] features = ["stream", "rustls-tls", "hyper-rustls"]
[package.metadata.deb]
assets = [
["target/release/ptth_multi_call_server", "usr/bin/ptth_multi_call_server_1.1", "755"],
]
name = "ptth-multi-call-server-1.1"

View File

@ -5,6 +5,8 @@ authors = ["Trish"]
edition = "2018" edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
repository = "https://six-five-six-four.com/git/reactor/ptth"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]

View File

@ -5,6 +5,8 @@ authors = ["Trish"]
edition = "2018" edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
repository = "https://six-five-six-four.com/git/reactor/ptth"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]

View File

@ -7,6 +7,7 @@ edition = "2018"
license = "AGPL-3.0" license = "AGPL-3.0"
description = "The PTTH relay" description = "The PTTH relay"
repository = "https://six-five-six-four.com/git/reactor/ptth"
[dependencies] [dependencies]

View File

@ -8,6 +8,7 @@ license = "AGPL-3.0"
categories = ["command-line-utilities", "web-programming::http-server"] categories = ["command-line-utilities", "web-programming::http-server"]
description = "The server for PTTH" description = "The server for PTTH"
repository = "https://six-five-six-four.com/git/reactor/ptth"
documentation = "https://docs.rs/ptth_server/" documentation = "https://docs.rs/ptth_server/"
default-run = "ptth_server" default-run = "ptth_server"

View File

@ -220,6 +220,9 @@ async fn serve_file (
if uri.ends_with (".js") { if uri.ends_with (".js") {
response.header ("content-type".into (), b"application/javascript".to_vec ()); response.header ("content-type".into (), b"application/javascript".to_vec ());
} }
else if uri.ends_with (".html") {
response.header ("content-type".into (), b"text/html; charset=UTF-8".to_vec ());
}
response.header ("content-length".into (), content_length.to_string ().into_bytes ()); response.header ("content-length".into (), content_length.to_string ().into_bytes ());

View File

@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["Trish"] authors = ["Trish"]
edition = "2018" edition = "2018"
repository = "https://six-five-six-four.com/git/reactor/ptth"
[dependencies] [dependencies]
anyhow = "1.0.38" anyhow = "1.0.38"
fltk = "1.3.1" fltk = "1.3.1"