Fix function name setTTL->SetTtl

Most probably it is typo.