Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 483 Bytes
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import json
import config_generator
import uuid
with open("/usr/local/V2ray.Fun/v2ray.config") as f:
try:
data = json.load(f)
except ValueError:
data = {}
data['uuid'] = str(uuid.uuid4())
data['ip'] = config_generator.getip()
config_generator.open_port(data['port'])
with open("/usr/local/V2ray.Fun/v2ray.config", "w") as f:
json.dump(data, f)
config_generator.gen_server()
config_generator.gen_client()
You can’t perform that action at this time.