Dotos 8 лет назад
Родитель
Сommit
ed11a9986b
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      package.json
  2. 1 1
      readme.md
  3. 1 0
      routes/ip.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "JsonBird",
-    "version": "1.3.1",
+    "version": "1.4.0",
     "description": "A Remote Json Agent Service",
     "author": {
         "name": "xCss",

+ 1 - 1
readme.md

@@ -8,7 +8,7 @@ A JSON Remote Agent Service | 一个远程JSON代理服务
 ![node.js support:v0.10.0+](https://img.shields.io/badge/node.js%20supports-v0.10.0+-green.svg)
 ![build:passing](https://img.shields.io/badge/build-passing-green.svg)
 [![license:MIT](https://img.shields.io/badge/license-MIT-blue.svg)](/License)
-[![releases:v1.1.2](https://img.shields.io/badge/releases-v1.1.2-blue.svg)](https://github.com/xCss/JsonBird/releases)
+[![releases:v1.4.0](https://img.shields.io/badge/releases-v1.4.0-blue.svg)](https://github.com/xCss/JsonBird/releases)
 
 ## Table Of Contents
 - [Requirements](#requirements)

+ 1 - 0
routes/ip.js

@@ -34,6 +34,7 @@ function ip2address(req, res, next) {
                 };
             }
             output.data = (body.result && body.result.data ? body.result.data : body.result) || {};
+            output.data['ip'] = ip;
             if (!err && response.statusCode === 200 && body.error_code === 0) {
                 //
             } else {