Good idea!
Good move to reverse the wires and temporarily fix the problem.
That's the thing with electrical problems, especially when the cause is likely coming from a 'black box', solid state type of device.
You lucked out in that you still had power to both lights.
When mine screwed up, only the left side would work and the right side didn't.
In other words, the cause can be similar...overloading, short, spike, etc....but the problem can be really weird and not make sense at all. I.e., more or less like your common computer problem.
But when a sealed hardware module goes bad, the only thing you can usually do is just replace the module.
Probably sounds like you can get along for a while using the jumper, but I would plan to have a backup headlight control module to put in sooner or later. My experience with electronics that start to go bad or don't work as advertized is that they eventually fail all together. And you don't want to get stuck out on 'Submarine Road' at midnight without lights!
Also, your temp fix will give you some time to shop around for the best price on a new or used module.
And when you do replace the module, it's only a 5 minute job.
Have fun.
