Skip to content

Commit 480406c

Browse files
authored
Merge pull request #249 from FederatedAI/feature-fix-master-ip
fix ip
2 parents b361328 + b9a36c5 commit 480406c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

fate-serving-admin-ui/vue.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,14 @@ module.exports = {
5858
disableHostCheck: true,
5959
open: process.platform === 'darwin',
6060
// host: 'localhost',
61-
host: '10.36.17.37',
61+
host: '127.0.0.1',
6262
port: 8010,
6363
https: false,
6464
hotOnly: false,
6565
// eslint-disable-next-line no-dupe-keys
6666
proxy: {
6767
'/api': {
68-
// target: 'http://172.16.153.168:8350',
69-
target: 'http://172.16.153.227:8350/',
68+
target: 'http://127.0.0.1:8350/',
7069
changeOrigin: true,
7170
pathRewrite: {
7271
'^/api': '/api'

fate-serving-core/src/main/java/com/webank/ai/fate/serving/core/utils/JsonUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public static String pbToJson(MessageOrBuilder message){
206206

207207

208208
public static void main(String[] args) {
209-
String s = JsonUtil.formatJson("{\"route_table\":{\"default\":{\"default\":[{\"ip\":\"127.0.0.1\",\"port\":9999,\"useSSL\":false}]},\"10000\":{\"default\":[{\"ip\":\"127.0.0.1\",\"port\":8889}],\"serving\":[{\"ip\":\"127.0.0.1\",\"port\":8080}]},\"123\":[{\"host\":\"10.35.27.23\",\"port\":8888,\"useSSL\":false,\"negotiationType\":\"\",\"certChainFile\":\"\",\"privateKeyFile\":\"\",\"caFile\":\"\"}]},\"permission\":{\"default_allow\":true}}");
209+
String s = JsonUtil.formatJson("{\"route_table\":{\"default\":{\"default\":[{\"ip\":\"127.0.0.1\",\"port\":9999,\"useSSL\":false}]},\"10000\":{\"default\":[{\"ip\":\"127.0.0.1\",\"port\":8889}],\"serving\":[{\"ip\":\"127.0.0.1\",\"port\":8080}]},\"123\":[{\"host\":\"127.0.0.1\",\"port\":8888,\"useSSL\":false,\"negotiationType\":\"\",\"certChainFile\":\"\",\"privateKeyFile\":\"\",\"caFile\":\"\"}]},\"permission\":{\"default_allow\":true}}");
210210
System.out.println(s);
211211

212212
}

0 commit comments

Comments
 (0)