add dev container and default ip
This commit is contained in:
parent
41955a7e21
commit
d352e7537c
3 changed files with 13 additions and 5 deletions
|
|
@ -6,8 +6,8 @@ use crate::nex::account::Account;
|
|||
pub static OWN_IP_PRIVATE: Lazy<Ipv4Addr> = Lazy::new(|| {
|
||||
env::var("SERVER_IP")
|
||||
.ok()
|
||||
.and_then(|s| s.parse().ok())
|
||||
.expect("SERVER_IP not specified")
|
||||
.map(|s| s.parse().expect("invalid ip address"))
|
||||
.unwrap_or(Ipv4Addr::UNSPECIFIED)
|
||||
});
|
||||
|
||||
pub static OWN_IP_PUBLIC: Lazy<Ipv4Addr> = Lazy::new(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue