This commit is contained in:
Ybehrooz
2025-06-08 20:25:59 +03:30
parent 3f13dd031d
commit 0d366c8bab
3 changed files with 31 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ var (
)
func InitDB() {
clientOptions := options.Client().ApplyURI("mongodb://root:example@192.168.1.10:27017/")
clientOptions := options.Client().ApplyURI("mongodb://root:example@192.168.2.177:27017/")
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
log.Fatal(err)