brookshi / Hitchhiker

a Restful Api test tool
http://www.hitchhiker-api.com
Other
2.19k stars 402 forks source link

怎么用js获取当前环境的IP? #301

Open xhandxym opened 4 years ago

xhandxym commented 4 years ago

environment 获取当前环境 const env = hitchhiker.environment;

文档里面可以获取当前环境,但是没有获取到当前环境的ip?我需要在全局脚本里面用js来获取当前环境的ip,因为这样可以生成对应的token,请问有什么方法可以做到吗?谢谢!

xhandxym commented 4 years ago

image