From 6da3664df71918a1403a27b2e630ab19250ceaf2 Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" <ctfang.cs12@nycu.edu.tw> Date: Wed, 15 May 2024 05:42:38 +0000 Subject: [PATCH] fix: update billing domain settings --- backend/billing/server.go | 12 +++++++++++- config/webuicfg.yaml | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/backend/billing/server.go b/backend/billing/server.go index e2a98c8..d31cb1d 100644 --- a/backend/billing/server.go +++ b/backend/billing/server.go @@ -28,10 +28,17 @@ type Access struct { Params map[string]string `json:"params"` } +type PortRange struct { + Start int `json:"start"` + End int `json:"end"` +} + type FtpConfig struct { Version int `json:"version"` Accesses []Access `json:"accesses"` 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 @@ -70,7 +77,10 @@ func OpenServer(wg *sync.WaitGroup) *BillingDomain { Params: params, }, }, - + Passive_transfer_port_range: PortRange{ + Start: 2123, + End: 2130, + }, Listen_address: addr, } diff --git a/config/webuicfg.yaml b/config/webuicfg.yaml index 6f55547..764e63c 100644 --- a/config/webuicfg.yaml +++ b/config/webuicfg.yaml @@ -14,7 +14,7 @@ configuration: billingServer: enable: true hostIPv4: 127.0.0.1 - listenPort: 2122 + listenPort: 2121 port: 2121 tls: pem: cert/chf.pem -- GitLab