Agree with your idea also @Nightstrasza , buff only applies when ship is within range of claim areas.
Yes @RogueLdr, they did that to protect ship while we offline, but some company will use it as advantage to raid any base near water too as they can easily anchored and tank all damage of the harbor defense (e.g cannons and mortars)