我对 mod_vcard 的配置如下:
{mod_vcard, [
{allow_return_all, true},
{search_all_hosts, true},
{matches, 1},
{search, true},
{host, localhost},
{backend, odbc}
]},
但是当我重新启动 mongoosIm 时出现以下错误:
2015-03-16 12:31:08.620 [error] <0.708.0> CRASH REPORT Process <0.708.0> with 0 neighbours exited with reason: bad argument in call to re:replace(localhost, "@HOST@", <<"localhost">>, [global,{return,binary}]) line 355 in mod_vcard:init/1 line 141 in gen_server:init_it/6 line 330
我究竟做错了什么 ?
答案1
主机参数应该是字符串而不是原子。尝试以下行:
{host, "localhost"},
或者任何其他主机,具体取决于您在主办方參數