fix a couple of things
This commit is contained in:
parent
a9fffa8d2d
commit
0cbff9878e
2 changed files with 4 additions and 4 deletions
|
|
@ -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")
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue