Skip to content

Commit 4676bea

Browse files
committed
caddy.go: Check whether @id is unique(#6991)
1 parent f44d8ba commit 4676bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func indexConfigObjects(ptr any, configPath string, index map[string]string) err
297297
if k == idKey {
298298
switch idVal := v.(type) {
299299
case string:
300-
err := writeToIdIndex(index, idVal, k)
300+
err := writeToIdIndex(index, idVal, configPath)
301301
if err != nil {
302302
return err
303303
}

0 commit comments

Comments
 (0)