diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-22 22:42:26 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-23 17:07:32 +0300 |
| commit | 81c9b4450bce3726733438fc860a2f7d4c242ea9 (patch) | |
| tree | 78dc3be6951eb58fed4288dab14734772cacd49d /web/service | |
| parent | fc3ea2dd4bb81bd5a09fcae8bcc8d4958818eda4 (diff) | |
minor changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Co-Authored-By: Tara Rostami <132676256+TaraRostami@users.noreply.github.com>
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/inbound.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/service/inbound.go b/web/service/inbound.go index 6a3dac5d..f637c0b2 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -1900,6 +1900,13 @@ func (s *InboundService) MigrationRequirements() { newStream, _ := json.MarshalIndent(stream, " ", " ") tx.Model(model.Inbound{}).Where("id = ?", ep.Id).Update("stream_settings", newStream) } + + err = tx.Raw(`UPDATE inbounds + SET tag = REPLACE(tag, '0.0.0.0:', '') + WHERE INSTR(tag, '0.0.0.0:') > 0;`).Error + if err != nil { + return + } } func (s *InboundService) MigrateDB() { |
