IP address is not shown for /debug On (#1101)
This commit is contained in:
parent
d1ec220710
commit
73965c70d7
|
@ -63,7 +63,7 @@
|
|||
"react-native-invertible-scroll-view": "^1.0.0",
|
||||
"react-native-level-fs": "^2.0.1",
|
||||
"react-native-linear-gradient": "2.0.0",
|
||||
"react-native-network-info": "github:alwx/react-native-network-info",
|
||||
"react-native-network-info": "2.0.0",
|
||||
"react-native-orientation": "github:youennPennarun/react-native-orientation",
|
||||
"react-native-popup-menu": "^0.7.1",
|
||||
"react-native-qrcode": "^0.2.2",
|
||||
|
|
|
@ -36,7 +36,9 @@
|
|||
(get-ip (fn [ip]
|
||||
(dispatch [:received-message
|
||||
{:message-id (random/id)
|
||||
:content (label :t/debug-enabled {:ip ip})
|
||||
:content (if ip
|
||||
(label :t/debug-enabled {:ip ip})
|
||||
(label :t/debug-enabled-no-ip))
|
||||
:content-type text-content-type
|
||||
:outgoing false
|
||||
:chat-id console-chat-id
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(ns status-im.components.network-info
|
||||
(:require [taoensso.timbre :as log]))
|
||||
|
||||
(def network-info-class (js/require "react-native-network-info"))
|
||||
(def network-info-class (.-NetworkInfo (js/require "react-native-network-info")))
|
||||
|
||||
(defn get-ip [callback]
|
||||
(.getIPAddress network-info-class
|
||||
|
|
|
@ -124,6 +124,7 @@
|
|||
:account-generation-message "Gimmie a sec, I gotta do some crazy math to generate your account!"
|
||||
:move-to-internal-failure-message "We need to move some important files from external to internal storage. To do this, we need your permission. We won't be using external storage in future versions."
|
||||
:debug-enabled "Debug server has been launched! Your IP address is {{ip}}. You can now add your DApp by running *status-dev-cli add-dapp --ip {{ip}}* from your computer"
|
||||
:debug-enabled-no-ip "Debug server has been launched! You can now add your DApp by running *status-dev-cli add-dapp --ip [your ip]* from your computer"
|
||||
|
||||
;phone types
|
||||
:phone-e164 "International 1"
|
||||
|
|
Loading…
Reference in New Issue