Skip to content
Snippets Groups Projects
Unverified Commit 6da3664d authored by CTFang@WireLab's avatar CTFang@WireLab
Browse files

fix: update billing domain settings

parent 77502bf0
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,17 @@ type Access struct { ...@@ -28,10 +28,17 @@ type Access struct {
Params map[string]string `json:"params"` Params map[string]string `json:"params"`
} }
type PortRange struct {
Start int `json:"start"`
End int `json:"end"`
}
type FtpConfig struct { type FtpConfig struct {
Version int `json:"version"` Version int `json:"version"`
Accesses []Access `json:"accesses"` Accesses []Access `json:"accesses"`
Listen_address string `json:"listen_address"` Listen_address string `json:"listen_address"`
Passive_transfer_port_range PortRange `json:"passive_transfer_port_range"`
} }
// The ftp server is for CDR Push method, that is the CHF will send the CDR file to the FTP server // The ftp server is for CDR Push method, that is the CHF will send the CDR file to the FTP server
...@@ -70,7 +77,10 @@ func OpenServer(wg *sync.WaitGroup) *BillingDomain { ...@@ -70,7 +77,10 @@ func OpenServer(wg *sync.WaitGroup) *BillingDomain {
Params: params, Params: params,
}, },
}, },
Passive_transfer_port_range: PortRange{
Start: 2123,
End: 2130,
},
Listen_address: addr, Listen_address: addr,
} }
......
...@@ -14,7 +14,7 @@ configuration: ...@@ -14,7 +14,7 @@ configuration:
billingServer: billingServer:
enable: true enable: true
hostIPv4: 127.0.0.1 hostIPv4: 127.0.0.1
listenPort: 2122 listenPort: 2121
port: 2121 port: 2121
tls: tls:
pem: cert/chf.pem pem: cert/chf.pem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment