fix a couple of things

This commit is contained in:
Maple 2025-07-30 22:42:12 +02:00
commit 0cbff9878e
2 changed files with 4 additions and 4 deletions

View file

@ -12,14 +12,14 @@ pub static OWN_IP_PRIVATE: Lazy<Ipv4Addr> = Lazy::new(|| {
env::var("SERVER_IP")
.ok()
.and_then(|s| s.parse().ok())
.expect("no private ip specified")
.expect("SERVER_IP not specified")
});
pub static OWN_IP_PUBLIC: Lazy<Ipv4Addr> = Lazy::new(|| {
env::var("SERVER_IP_PUBLIC")
.ok()
.and_then(|s| s.parse().ok())
.expect("no private ip specified")
.expect("SERVER_IP_PUBLIC not specified")
});
pub static SERVER_PORT: Lazy<u16> = Lazy::new(|| {
@ -52,5 +52,5 @@ pub static FORWARD_DESTINATION: Lazy<SocketAddrV4> =
env::var("FORWARD_DESTINATION")
.ok()
.and_then(|s| s.parse().ok())
.expect("SECURE_EDGE_NODE_HOLDER not set")
.expect("FORWARD_DESTINATION not set")
);

View file

@ -46,7 +46,7 @@ async fn main() {
let mut socket_secure = router_secure
.add_socket(VirtualPort::new(1, 10), Secure(
"6f599f81",
AUTH_SERVER_ACCOUNT.clone()
SECURE_SERVER_ACCOUNT.clone()
))
.await
.expect("unable to add socket");