File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/jormungandr/jormungandr-lib Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ hex = "0.4"
2929bech32 = " 0.8"
3030base64 = " 0.13.0"
3131http = " 0.2.2"
32- [target .'cfg(not(target_arch = "wasm32-unknown-unknown "))' .dependencies ]
32+ [target .'cfg(not(target_family = "wasm "))' .dependencies ]
3333local-ip-address = " 0.4.9"
3434
3535[dev-dependencies ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::net::{IpAddr, Ipv4Addr};
22
33use crate :: { crypto:: hash:: Hash , interfaces:: BlockDate , time:: SystemTime } ;
44use chain_impl_mockchain:: key;
5- #[ cfg( not( target_arch = "wasm32-unknown-unknown " ) ) ]
5+ #[ cfg( not( target_family = "wasm " ) ) ]
66use local_ip_address:: local_ip;
77use serde:: { Deserialize , Serialize } ;
88
@@ -25,7 +25,7 @@ pub enum FragmentOrigin {
2525
2626impl FragmentOrigin {
2727 pub fn default_origin_addr ( ) -> Self {
28- #[ cfg( not( target_arch = "wasm32-unknown-unknown " ) ) ]
28+ #[ cfg( not( target_family = "wasm " ) ) ]
2929 match local_ip ( ) {
3030 Ok ( ip) => FragmentOrigin :: Network { addr : ip } ,
3131 Err ( _err) => FragmentOrigin :: Network {
You can’t perform that action at this time.
0 commit comments