diff options
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() { |
