Fix keepalive options and small typo

Opts should be copied to config, not the other way.