Fix the cfg_addr error on socket object